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

◆ Copy()

void Copy ( byte x0,
byte y0,
byte x1,
byte y1,
byte x2,
byte y2 )

Definition at line 494 of file funky.cpp.

494 {
495 for (int y = y0; y < y1 + 1; y++) {
496 for (int x = x0; x < x1 + 1; x++) {
497 leds[XY(x + x2 - x0, y + y2 - y0)] = leds[XY(x, y)];
498 }
499 }
500}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
int y
Definition Audio.ino:72
int x
Definition Audio.ino:71
int XY(int x, int y)
Definition funky.cpp:190
uint16_t y2
Definition funky.cpp:95
uint16_t x2
Definition funky.cpp:94

References leds, x, x2, XY(), y, and y2.

Referenced by fl::Gradient::Gradient(), and CopyTest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: