- Parameters
-
now | The current time in milliseconds. Fx writers are encouraged to use this instead of millis() directly as this will more deterministic behavior. |
Implements fl::Fx.
Definition at line 277 of file animartrix.hpp.
277 {
278 this->
leds = ctx.leds;
281 for (
int i = 0; i <
mXyMap.getTotal(); ++i) {
282 CRGB &pixel = ctx.leds[i];
286 pixel = CRGB(pixel.raw[b0_index], pixel.raw[b1_index],
287 pixel.raw[b2_index]);
288 }
289
290 }
291 this->
leds =
nullptr;
292}
friend void AnimartrixLoop(Animartrix &self, fl::u32 now)
@ RGB
Red, Green, Blue (0012)
#define RGB_BYTE2(RO)
Gets the color channel for byte 2.
#define RGB_BYTE1(RO)
Gets the color channel for byte 1.
#define RGB_BYTE0(RO)
Gets the color channel for byte 0.
References AnimartrixLoop, color_order, fl::_DrawContext::leds, leds, fl::Fx2d::mXyMap, fl::_DrawContext::now, fl::RGB, RGB_BYTE0, RGB_BYTE1, and RGB_BYTE2.