#https://www.shadertoy.com/view/4t3SWN

pixels = W:1024 H:1024

x = from -40.0 to 40.0 W
y = from -40.0 to 40.0 H

a = 0
hx = 0.85682
hy = 0.6

[loop start:50
s = sign(hx)
hx = (iq_hash2(hx, hy)*2 - 1)*15
hy = (iq_hash2(hx, hy)*2 - 1)*20
a = a + s*atan2(x - hx, y - hy)
loop end]

x = x + 10*abs(iq_hash2(hx, hy)*2 - 1)
y = y + 10*abs(iq_hash2(hx+31, hy+17)*2 - 1)

a = a + atan2(y, x)

p = 0.8
s = 0.3
m = mod(length2(x, y) + 0.319*a, 2)
v = (1-smoothstep(2-s,2,m))*smoothstep(p,p+s,m)

r = v
g = r
b = r
