18FASTLED_SMART_PTR(FxLayer);
28 void draw(uint32_t now) {
31 frame = FramePtr::New(fx->getNumLeds());
36 memset(frame->rgb(), 0, frame->size() *
sizeof(
CRGB));
44 void pause(uint32_t now) {
58 CRGB *getSurface() {
return frame->rgb(); }
Defines the red, green, and blue (RGB) pixel struct.
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)