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

◆ makeScreenMap()

ScreenMap makeScreenMap ( )

Definition at line 118 of file Fire2023.ino.

118 {
120 for (uint16_t y = 0; y < WIDTH; y++) {
121 for (uint16_t x = 0; x < HEIGHT; x++) {
122 vec2f xy = {float(x) * 3, float(y) * 20};
123 lut.push_back(xy);
124 }
125 }
126 return ScreenMap(lut.data(), lut.size(), 1);
127}
int y
Definition Audio.ino:72
#define WIDTH
Definition Audio.ino:33
int x
Definition Audio.ino:71
#define HEIGHT
Definition Audio.ino:32
unsigned int xy(unsigned int x, unsigned int y)
size_t size() const
Definition vector.h:435
void push_back(const T &value)
Definition vector.h:442
vec2< float > vec2f
Definition geometry.h:301
HeapVector< T > vector
Definition vector.h:1028

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: