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

◆ dither() [1/2]

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

Calculate a dither value.

Template Parameters
SLOTThe data slot in the output stream. This is used to select which byte of the output stream is being processed.
Parameters
bthe color byte to dither
ddither data

Definition at line 354 of file pixel_controller.h.

354{ return b ? qadd8(b,d) : 0; }
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
Definition math8.h:31
uint8_t d[3]
values for the scaled dither signal
Pixel controller class.

References PixelController(), d, FASTLED_FORCE_INLINE, and qadd8().

+ Here is the call graph for this function: