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

◆ scale() [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 >::scale ( PixelController< RGB_ORDER, LANES, MASK > & ,
fl::u8 b,
fl::u8 scale )
inlinestatic

Scale a 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 byte to scale
scalethe scale value

Definition at line 451 of file pixel_controller.h.

451{ return fl::scale8(b, scale); }
static FASTLED_FORCE_INLINE fl::u8 scale(PixelController &pc, fl::u8 b)
Scale a value using the per-channel scale data.
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, and scale().

+ Here is the call graph for this function: