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

◆ loadAndScale() [1/4]

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 >::loadAndScale ( PixelController< RGB_ORDER, LANES, MASK > & pc)
inlinestatic

Loads, dithers, and scales a single byte for a given output slot, using class dither and scale values.

Template Parameters
SLOTThe data slot in the output stream. This is used to select which byte of the output stream is being processed.
Parameters
pcreference to the pixel controller

Definition at line 379 of file pixel_controller.h.

379{ return scale<SLOT>(pc, pc.dither<SLOT>(pc, pc.loadByte<SLOT>(pc))); }
UISlider scale("Scale", 4,.1, 4,.1)
static FASTLED_FORCE_INLINE uint8_t loadByte(PixelController &pc)
Read a byte of LED data.
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 PixelController(), dither(), FASTLED_FORCE_INLINE, loadByte(), and scale.

Referenced by advanceAndLoadAndScale(), advanceAndLoadAndScale(), advanceAndLoadAndScale(), loadAndScale0(), loadAndScale0(), loadAndScale0(), loadAndScale1(), loadAndScale1(), loadAndScale1(), loadAndScale2(), loadAndScale2(), and loadAndScale2().

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