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

◆ plotDot()

void fl::Luminova::plotDot ( CRGB * leds,
int x,
int y,
uint8_t v ) const
private

Definition at line 55 of file luminova.cpp.

55 {
56 if (!mXyMap.has(x, y)) {
57 return;
58 }
59 const uint16_t idx = mXyMap.mapToIndex(static_cast<uint16_t>(x), static_cast<uint16_t>(y));
60 leds[idx] += CHSV(0, 0, scale8(v, mParams.point_gain));
61}
CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
int x
Definition simple.h:92
XYMap mXyMap
Definition fx2d.h:31
Params mParams
Definition luminova.h:63
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:44

References leds, mParams, fl::Fx2d::mXyMap, scale8(), x, and y.

Referenced by plotSoftDot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: