MCPcopy Create free account
hub / github.com/FastLED/FastLED / draw

Method draw

src/fl/gfx/draw_visitor.h:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 : mColor(color), mXYMap(xymap), mOut(out) {}
54
55inline void XYDrawComposited::draw(const vec2<fl::u16> &pt, fl::u32 index,
56 fl::u8 value) {
57 FASTLED_UNUSED(pt);
58 CRGB &c = mOut[index];
59 CRGB blended = mColor;
60 blended.fadeToBlackBy(255 - value);
61 c = CRGB::blendAlphaMaxChannel(blended, c);
62}
63
64inline XYDrawGradient::XYDrawGradient(const Gradient &gradient,
65 const XYMap &xymap, fl::span<CRGB> out)

Callers 1

drawColorMethod · 0.45

Calls 1

colorAtMethod · 0.80

Tested by

no test coverage detected