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

Function plotDot

examples/Luminova/Luminova.h:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77inline void plotDot(int x, int y, uint8_t v) {
78 if (x < 0 || x >= WIDTH || y < 0 || y >= HEIGHT)
79 return;
80 // Additive white (Processing used stroke(W), i.e., white) with gain control
81 leds[fl::XY((fl::u8)x, (fl::u8)y)] += CHSV(0, 0, scale8(v, kPointGain));
82}
83
84// draw a small disk ~ strokeWeight; 1..3 pixels radius
85void plotSoftDot(float fx, float fy, float s) {

Callers 2

plotSoftDotMethod · 0.85
plotSoftDotFunction · 0.85

Calls 2

XYFunction · 0.70
scale8Function · 0.50

Tested by

no test coverage detected