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

◆ RenderCustomMatrix()

void RenderCustomMatrix ( )

Definition at line 978 of file funky.cpp.

978 {
979 for (int x = 0; x < CUSTOM_WIDTH; x++) {
980 for (int y = 0; y < CUSTOM_HEIGHT; y++) {
981 // position in the custom array
982 leds2[x + x * y] =
983 // positions(s) in the source 16*16
984 // in this example it interpolates between just 2 diagonal
985 // touching pixels
986 (leds[XY(x * 2, y * 2)] + // first point added to
987 leds[XY(1 + (x * 2), 1 + (y * 2))]) // second point
988 ; // divided by 2 to get the average color
989 }
990 }
991}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
int y
Definition Audio.ino:72
int x
Definition Audio.ino:71
CRGB leds2[lengths[RedStrip]]
#define CUSTOM_WIDTH
Definition defs.h:16
#define CUSTOM_HEIGHT
Definition defs.h:17
int XY(int x, int y)
Definition funky.cpp:190

References CUSTOM_HEIGHT, CUSTOM_WIDTH, leds, leds2, x, XY(), and y.

+ Here is the call graph for this function: