Tasmota/lib/libesp32/berry_animation/anim_examples/test_template_simple.anim
2025-08-29 23:10:41 +02:00

19 lines
388 B
Plaintext

# Test template functionality
# Define a simple template
template pulse_effect {
param base_color type color
param duration
param brightness
animation pulse = pulsating_animation(
color=base_color
period=duration
)
pulse.opacity = brightness
run pulse
}
# Use the template - templates add animations directly to engine and run them
pulse_effect(red, 2s, 80%)