FastLED 3.10.10
Loading...
Searching...
No Matches

◆ sceneStar()

static void sceneStar ( unsigned long t)
static
Examples
Polygon.ino.

Definition at line 154 of file Polygon.ino.

154 {
155 const float cx = WIDTH * 0.5f, cy = HEIGHT * 0.5f;
156 const float r = (WIDTH < HEIGHT ? WIDTH : HEIGHT) * 0.5f - 0.25f;
157 const float spin = (float)(t % 9000) * (6.2831853f / 9000.0f);
158 drawStar(cx, cy, r, spin, CRGB(255, 140, 0));
159 drawStar(cx, cy, r * 0.28f, -2.0f * spin, CRGB(0, 120, 255));
160}
static void drawStar(float cx, float cy, float r, float spin, const CRGB &color)
Definition Polygon.ino:144
#define WIDTH
#define HEIGHT
static uint32_t t
Definition Luminova.h:55
fl::CRGB CRGB
Definition crgb.h:25

References drawStar(), HEIGHT, t, and WIDTH.

+ Here is the call graph for this function: