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

◆ makeScreenMap()

ScreenMap makeScreenMap ( )

Definition at line 128 of file Fire2023.h.

128 {
130 for (uint16_t y = 0; y < WIDTH; y++) {
131 for (uint16_t x = 0; x < HEIGHT; x++) {
132 vec2f xy = {float(x) * 3, float(y) * 20};
133 lut.push_back(xy);
134 }
135 }
136 return ScreenMap(lut.data(), lut.size(), 1);
137}
int y
Definition simple.h:93
int x
Definition simple.h:92
unsigned int xy(unsigned int x, unsigned int y)
#define WIDTH
Definition advanced.h:36
#define HEIGHT
Definition advanced.h:37
fl::size size() const
Definition vector.h:545
void push_back(const T &value)
Definition vector.h:552
vec2< float > vec2f
Definition geometry.h:333
HeapVector< T, Allocator > vector
Definition vector.h:1214

References fl::HeapVector< T, Allocator >::data(), HEIGHT, fl::HeapVector< T, Allocator >::push_back(), fl::HeapVector< T, Allocator >::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: