FastLED 3.9.15
Loading...
Searching...
No Matches

◆ enable_dithering()

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
void PixelController< RGB_ORDER, LANES, MASK >::enable_dithering ( EDitherMode dither)
inline

Toggle dithering enable If dithering is set to enabled, this will re-init the dithering values (init_binary_dithering()).

Otherwise it will clear the stored dithering data.

Parameters
ditherthe dither setting

Definition at line 291 of file pixel_controller.h.

291 {
292 switch(dither) {
294 default: d[0]=d[1]=d[2]=e[0]=e[1]=e[2]=0; break;
295 }
296 }
void init_binary_dithering()
Set up the values for binary dithering.
uint8_t d[3]
values for the scaled dither signal
uint8_t e[3]
values for the unscaled dither signal
static FASTLED_FORCE_INLINE uint8_t dither(PixelController &pc, uint8_t b)
Calculate a dither value using the per-channel dither data.
Pixel controller class.

References BINARY_DITHER, d, dither(), e, EDitherMode, and init_binary_dithering().

Referenced by PixelController(), PixelController(), and PixelController().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: