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

◆ dither() [1/2]

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
template<int SLOT>
static FASTLED_FORCE_INLINE fl::u8 PixelController< RGB_ORDER, LANES, MASK >::dither ( PixelController< RGB_ORDER, LANES, MASK > & ,
fl::u8 b,
fl::u8 d )
inlinestatic

Add explicit dither offset to pixel value (BEFORE scaling).

Black pixels not dithered.

Template Parameters
SLOTThe data slot in the output stream
Parameters
bthe color byte to dither
ddither offset to add
Returns
b + d, clamped to 255

Definition at line 438 of file pixel_controller.h.

438{ return b ? fl::qadd8(b,d) : 0; }
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)
Pixel controller class.

References PixelController(), d, and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: