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

◆ scale() [2/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 > & pc,
fl::u8 b )
inlinestatic

Scale a value using the per-channel scale data.

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
bthe color byte to scale
See also
PixelController::mScale

Definition at line 445 of file pixel_controller.h.

445{ return fl::scale8(b, pc.mColorAdjustment.premixed.raw[RO(SLOT)]); }
ColorAdjustment mColorAdjustment
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, mColorAdjustment, ColorAdjustment::premixed, and RO.

Referenced by advanceAndLoadAndScale(), advanceAndLoadAndScale0(), loadAndScale(), loadAndScale(), loadAndScale0(), loadAndScale1(), loadAndScale2(), scale(), and stepAdvanceAndLoadAndScale0().

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