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

pixels = W:1024 H:1024

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

bounds = smoothstep(9,10,length2(x*0.7,y*0.5))

a = 0
hx = 0.1
hy = 0.0

[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(asti_hash2(hx, hy)*2 - 1)

a = a + atan2(y, x)

w = 0.8
p = (1-bounds)*w
s = min(0.3, p)
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
