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

◆ makeScreenMap()

ScreenMap makeScreenMap ( )

Definition at line 116 of file Fire2023.ino.

116 {
118 for (uint16_t y = 0; y < WIDTH; y++) {
119 for (uint16_t x = 0; x < HEIGHT; x++) {
120 pair_xy_float xy = {float(x) * 3, float(y) * 20};
121 lut.push_back(xy);
122 }
123 }
124 return ScreenMap(lut.data(), lut.size(), 1);
125}
#define WIDTH
Definition Blur2d.ino:9
#define HEIGHT
Definition Blur2d.ino:10
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
unsigned int xy(unsigned int x, unsigned int y)
size_t size() const
Definition vector.h:311
void push_back(const T &value)
Definition vector.h:324
pair_xy< float > pair_xy_float
Definition lut.h:24

References fl::HeapVector< T >::data(), HEIGHT, fl::HeapVector< T >::push_back(), fl::HeapVector< T >::size(), WIDTH, x, xy(), and y.

Referenced by setup().

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