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

◆ draw()

void fl::XYDrawComposited::draw ( const vec2< fl::u16 > & pt,
fl::u32 index,
fl::u8 value )
inline

Definition at line 57 of file draw_visitor.h.

58 {
60 CRGB &c = mOut[index];
61 CRGB blended = mColor;
62 blended.fadeToBlackBy(255 - value);
63 c = CRGB::blendAlphaMaxChannel(blended, c);
64}
CRGB & fadeToBlackBy(fl::u8 fadefactor)
fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower)
Definition crgb.cpp:60
#define FASTLED_UNUSED(x)
Definition unused.h:4

References CRGB::blendAlphaMaxChannel(), CRGB::fadeToBlackBy(), FASTLED_UNUSED, mColor, and mOut.

+ Here is the call graph for this function: