Rewrite the entirety of the Ambilight module for better functionalities
and performances. I wrote an advanced algorithm to get a smoother result
in addition to more parameters :
- device_index
- edge
- reversed
- band_depth_percent
- weight_exponent
- sample_overlap_percent
- saturation_boost
-temporal_smoothing_tau
The main functionalities added are:
- Advanced Color Averaging: Improved methods to calculate smarter average colors, such as sampling larger color bands or allowing LEDs to influence adjacent colors.
- Temporal Smoothing: Introduction of “temporal_smoothing_tau” to ensure smoother, more natural color transitions over time.
- Enhanced Immersion: Addition of “saturation_boost” and “weight_exponent” parameters to deliver a more vibrant and immersive visual experience.
For instance, the colors on the left terminal simulate the final result that would handle the left edge of the screen (using default parameters).