25 lines
593 B
Text
Executable file
25 lines
593 B
Text
Executable file
name: "Pina Colada"
|
|
mode: lines
|
|
blend: additive
|
|
persist: 0.887
|
|
linewidth: 1.779
|
|
|
|
[init]
|
|
n = 943
|
|
|
|
[frame]
|
|
t = t + dt * (0.219 + bass_att * 1.8)
|
|
hue = hue + dt * 0.098 + beat * 0.012
|
|
|
|
[point]
|
|
arm = floor(i * 8)
|
|
fa = frac(i * 8)
|
|
d = fa
|
|
ang = arm * 1.519 + d * 1.263 * 3.14159 + t
|
|
rad = (0.04 + pow(d, 2.354) * 1.15) * (0.7 + bass * 0.5)
|
|
x = sin(ang) * rad / aspect
|
|
y = cos(ang) * rad
|
|
red = (0.3 + 0.7 * d) * (0.3 + mid) * (0.25 + bass * 0.95)
|
|
green = (0.3 + 0.7 * d) * (0.3 + mid) * (0.25 + mid * 0.95)
|
|
blue = (0.3 + 0.7 * d) * (0.3 + mid) * (0.25 + treb * 0.95)
|
|
skip = if(below(fa, 0.04), 1, 0)
|