27 void draw(uint32_t now) {
30 frame = FrameRef::New(fx->getNumLeds());
35 memset(frame->rgb(), 0, frame->size() *
sizeof(
CRGB));
36 if (fx->hasAlphaChannel()) {
37 memset(frame->alpha(), 0, frame->size());
43 if (fx->hasAlphaChannel()) {
44 context.alpha_channel = frame->alpha();
63 CRGB *getSurface() {
return frame->rgb(); }
64 uint8_t *getSurfaceAlpha() {
65 return fx->hasAlphaChannel() ? frame->alpha() :
nullptr;