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

Function makeScreenMap

examples/Fire2023/Fire2023.h:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127fl::ScreenMap makeScreenMap() {
128 fl::vector<fl::vec2f> lut;
129 for (uint16_t y = 0; y < WIDTH; y++) {
130 for (uint16_t x = 0; x < HEIGHT; x++) {
131 fl::vec2f xy = {float(x) * 3, float(y) * 20};
132 lut.push_back(xy);
133 }
134 }
135 return fl::ScreenMap(lut.data(), lut.size(), 1);
136}
137
138void Fire2023(uint32_t now) {
139 // some changing values

Callers 1

setupFunction · 0.70

Calls 4

ScreenMapClass · 0.50
push_backMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected