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

Method set

tests/fl/fx/2d/blend.hpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void set(uint16_t x, uint16_t y, CRGB color) {
47 if (x < mXyMap.getWidth() && y < mXyMap.getHeight()) {
48 uint16_t index = mXyMap(x, y);
49 if (index < mXyMap.getTotal()) {
50 mLeds[index] = color;
51 }
52 }
53 }
54
55 fl::string fxName() const override { return "TestFx2D"; }
56

Callers 1

blend.hppFile · 0.45

Calls 3

getTotalMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected