51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Ocean Waves - Blue-green wave simulation
|
|
# Flowing water colors with wave motion
|
|
|
|
strip length 60
|
|
|
|
# Define ocean color palette
|
|
palette ocean_colors = [
|
|
(0, #000080), # Deep blue
|
|
(64, #0040C0), # Ocean blue
|
|
(128, #0080FF), # Light blue
|
|
(192, #40C0FF), # Cyan
|
|
(255, #80FFFF) # Light cyan
|
|
]
|
|
|
|
# Base ocean animation with slow color cycling
|
|
animation ocean_base = rich_palette_animation(ocean_colors, 8s, smooth, 200)
|
|
|
|
# Add wave motion with moving pulses
|
|
pattern wave1_pattern = rich_palette_color_provider(ocean_colors, 6s, smooth, 255)
|
|
animation wave1 = pulse_position_animation(
|
|
wave1_pattern, # color source
|
|
0, # initial position
|
|
12, # wave width
|
|
6 # soft edges
|
|
)
|
|
wave1.priority = 10
|
|
wave1.pos = sawtooth(0, 48, 5s) # 60-12 = 48
|
|
|
|
pattern wave2_pattern = rich_palette_color_provider(ocean_colors, 4s, smooth, 180)
|
|
animation wave2 = pulse_position_animation(
|
|
wave2_pattern, # color source
|
|
52, # initial position
|
|
8, # smaller wave
|
|
4 # soft edges
|
|
)
|
|
wave2.priority = 8
|
|
wave2.pos = sawtooth(52, 8, 7s) # Opposite direction
|
|
|
|
# Add foam sparkles
|
|
animation foam = twinkle_animation(
|
|
#FFFFFF, # White foam
|
|
6, # density (sparkle count)
|
|
300ms # twinkle speed (quick sparkles)
|
|
)
|
|
foam.priority = 15
|
|
|
|
# Start all animations
|
|
run ocean_base
|
|
run wave1
|
|
run wave2
|
|
run foam |