openvisengine/rust-agent/presets/starter.ava
2026-10-21 14:13:58 +00:00

30 lines
554 B
Text

# AVA visualization script — starter template
# Tap "Help" in the editor for the full variable & function reference.
name: My Visualization
author: you
mode: lines
blend: additive
persist: 0.85
linewidth: 2
[init]
n = 400
t = 0
[frame]
# t advances faster when the bass hits
t = t + dt * (0.5 + bass)
hue = hue + dt * 0.05
[beat]
flash = 1
[point]
# a circle whose radius breathes with the bass
a = i * 6.28318
rad = 0.2 + bass * 0.5 + flash * 0.05
x = sin(a + t) * rad / aspect
y = cos(a + t) * rad
red = 0.2 + bass
green = 0.8
blue = 0.25 + treb