Tasmota/lib/libesp32/berry_animation/anim_examples/simple_palette.anim
s-hadinger ca934bae33
Preview of Berry animation framework (#23740)
* Preview of Berry animation framework

* fix comet and compilation for safeboot
2025-08-01 18:02:02 +02:00

23 lines
399 B
Plaintext

# Simple Palette Example
# Demonstrates basic palette usage in the DSL
strip length 20
# Define a simple rainbow palette
palette rainbow = [
(0, red),
(64, orange),
(128, yellow),
(192, green),
(255, blue)
]
# Create an animation using the palette
animation rainbow_cycle = rich_palette_animation(rainbow, 3s)
# Simple sequence
sequence demo {
play rainbow_cycle for 15s
}
run demo