33 lines
832 B
Text
Executable file
33 lines
832 B
Text
Executable file
# Adapted from "vorticity (brain activity remix)" — original by synth-c,
|
|
# remix by zamuz (Winamp AVS / visbot.net). The original ran 3D particle
|
|
# trails through rotating vector fields at sound-driven speed (sndspd = 10).
|
|
name: vorticity
|
|
author: synth-c / zamuz (adapted)
|
|
mode: lines
|
|
blend: additive
|
|
persist: 0.92
|
|
linewidth: 1.6
|
|
|
|
[init]
|
|
n = 1200
|
|
t = 0
|
|
hue = 0
|
|
|
|
[frame]
|
|
t = t + dt * (0.4 + bass_att * 1.6)
|
|
twist = 1.2 + mid * 2.6
|
|
zoom = 0.75 + bass * 0.45
|
|
hue = hue + dt * 0.04 + beat * 0.01
|
|
|
|
[point]
|
|
arm = floor(i * 6)
|
|
fa = frac(i * 6)
|
|
d = fa
|
|
ang = arm * 1.047 + d * twist * 3.14159 + t
|
|
rad = (0.06 + d * d * 1.1) * zoom
|
|
x = sin(ang) * rad / aspect
|
|
y = cos(ang) * rad
|
|
red = (0.3 + 0.7 * d) * (0.35 + bass)
|
|
green = (0.3 + 0.7 * d) * (0.25 + mid)
|
|
blue = (0.3 + 0.7 * d) * (0.2 + treb + hue * 0.25)
|
|
skip = if(below(fa, 0.03), 1, 0)
|