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

◆ XY()

fl::u16 fl::XY ( fl::u16 x,
fl::u16 y )

Definition at line 28 of file Luminova.h.

28 {
29 if (x >= WIDTH || y >= HEIGHT)
30 return 0;
32 if (y & 1) {
33 // odd rows run right-to-left
34 return y * WIDTH + (WIDTH - 1 - x);
35 } else {
36 // even rows run left-to-right
37 return y * WIDTH + x;
38 }
39 } else {
40 return y * WIDTH + x;
41 }
42}
int y
Definition simple.h:93
int x
Definition simple.h:92
#define kMatrixSerpentineLayout
#define WIDTH
#define HEIGHT

References HEIGHT, kMatrixSerpentineLayout, WIDTH, x, and y.

Referenced by plotDot(), and xy_map_function().

+ Here is the caller graph for this function: