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

◆ draw()

void fl::XYDrawComposited::draw ( const vec2< int > & pt,
uint32_t index,
uint8_t value )
inline

Definition at line 35 of file draw_visitor.h.

36 {
38 CRGB &c = mOut[index];
39 CRGB blended = mColor;
40 blended.fadeToBlackBy(255 - value);
41 c = CRGB::blendAlphaMaxChannel(blended, c);
42}
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower)
Definition crgb.cpp:59
CRGB & fadeToBlackBy(uint8_t fadefactor)
fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale
Definition crgb.cpp:111
#define FASTLED_UNUSED(x)
Definition unused.h:3

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

+ Here is the call graph for this function: