- 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 268 of file animartrix.hpp.
268 {
269 this->
leds = ctx.leds;
272 for (
int i = 0; i <
mXyMap.getTotal(); ++i) {
273 CRGB &pixel = ctx.leds[i];
277 pixel = CRGB(pixel.raw[b0_index], pixel.raw[b1_index],
278 pixel.raw[b2_index]);
279 }
280
281 }
282 this->
leds =
nullptr;
283}
friend void AnimartrixLoop(Animartrix &self, uint32_t 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, RGB, RGB_BYTE0, RGB_BYTE1, and RGB_BYTE2.