MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / Firework

Class Firework

src/effects.cpp:573–581  ·  view source on GitHub ↗

######## Fireworks ############

Source from the content-addressed store, hash-verified

571
572// ######## Fireworks ############
573struct Firework
574{
575 float x, y;
576 uint8_t life;
577 bool exploded;
578 CRGB color;
579 uint16_t peak;
580 float speed; // Add a speed variable to each firework
581};
582
583#define MAX_FIREWORKS 5
584Firework fireworks[MAX_FIREWORKS];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected