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

◆ makeScreenMap()

fl::ScreenMap makeScreenMap ( )

Definition at line 127 of file Fire2023.h.

127 {
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}
int y
Definition simple.h:93
int x
Definition simple.h:92
unsigned int xy(unsigned int x, unsigned int y)
#define WIDTH
#define HEIGHT
fl::size size() const FL_NOEXCEPT
T * data() FL_NOEXCEPT
Definition vector.h:619
void push_back(const T &value) FL_NOEXCEPT
Definition vector.h:624
vec2< float > vec2f
Definition geometry.h:333

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