show Animation Frame
Show a single part of pixel animation on the pixel ring.
light.showAnimationFrame(light.rainbowAnimation)
You can show the colors from a pixel animation without having to play the whole animation. Just pick one of the built-in animations to see its first frame.
Parameters
- animation: a built-in light animation to show a frame from on the pixels.
comet
: a shooting burst of lightrainbow
: many colors pulsing aroundsparkle
: bright lights flashing all overrunning lights
: a sequence of lights movingtheater chase
: theater lights moving alongcolor wipe
: a wave of color
Examples
Show the first part of the comet
aninmation.
light.showAnimationFrame(light.cometAnimation)
See Also
||show animation||
,
||animation||
circuit-playground