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

Method plotDot

src/fl/fx/2d/luminova.cpp.hpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void Luminova::plotDot(fl::span<CRGB> leds, int x, int y, u8 v) const {
66 if (!mXyMap.has(x, y)) {
67 return;
68 }
69 const u16 idx = mXyMap.mapToIndex(static_cast<u16>(x), static_cast<u16>(y));
70 leds[idx] += CHSV(0, 0, scale8(v, mParams.point_gain));
71}
72
73void Luminova::plotSoftDot(fl::span<CRGB> leds, float fx, float fy, float s) const {
74 // Map s (decays from ~3) to a pixel radius 1..3

Callers

nothing calls this directly

Calls 3

scale8Function · 0.50
hasMethod · 0.45
mapToIndexMethod · 0.45

Tested by

no test coverage detected