FastLED 3.10.6
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 349 of file pixel_controller.h.

349{ return fl::Dither::apply(b, d); }
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)
Pixel controller class.
static FASTLED_FORCE_INLINE u8 apply(u8 b, u8 d) FL_NO_EXCEPT
Add the offset to a source byte, before scaling. Black is never lifted.

References PixelController(), fl::BinaryDither::apply(), d, and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: