39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# Comet Chase - Moving comet with trailing tail
|
|
# Bright head with fading tail
|
|
|
|
strip length 60
|
|
|
|
# Dark blue background
|
|
color space_blue = 0x000066 # Note: opaque 0xFF alpha channel is implicitly added
|
|
animation background = solid(space_blue)
|
|
|
|
# Main comet with bright white head
|
|
animation comet_main = comet_animation(
|
|
0xFFFFFF, # White head
|
|
10, # tail length
|
|
2s # speed
|
|
)
|
|
comet_main.priority = 7
|
|
|
|
# Secondary comet in different color, opposite direction
|
|
animation comet_secondary = comet_animation(
|
|
0xFF4500, # Orange head
|
|
8, # shorter tail
|
|
3s, # slower speed
|
|
-1 # other direction
|
|
)
|
|
comet_secondary.priority = 5
|
|
|
|
# Add sparkle trail behind comets but on top of blue background
|
|
animation comet_sparkles = twinkle_animation(
|
|
0xAAAAFF, # Light blue sparkles
|
|
8, # density (moderate sparkles)
|
|
400ms # twinkle speed (quick sparkle)
|
|
)
|
|
comet_sparkles.priority = 8
|
|
|
|
# Start all animations
|
|
run background
|
|
run comet_main
|
|
run comet_secondary
|
|
run comet_sparkles |