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 55 of file draw_visitor.h.

56 {
58 CRGB &c = mOut[index];
59 CRGB blended = mColor;
60 blended.fadeToBlackBy(255 - value);
61 c = CRGB::blendAlphaMaxChannel(blended, c);
62}
fl::CRGB CRGB
Definition video.h:15
constexpr int type_rank< T >::value
#define FASTLED_UNUSED(x)
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower) FL_NOEXCEPT
Definition crgb.cpp.hpp:59
CRGB & fadeToBlackBy(u8 fadefactor) FL_NOEXCEPT
fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale
Definition crgb.cpp.hpp:111
fl::span< CRGB > mOut

References fl::CRGB::blendAlphaMaxChannel(), fl::CRGB::fadeToBlackBy(), FASTLED_UNUSED, mColor, mOut, and fl::type_rank< T >::value.

+ Here is the call graph for this function: