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

pixels = W:1024 H:1024

x = from 0 to 1 W
y = from 0 to 1 H

u = -1 + 2*x
v = -1 + 2*y

t = 2.156
offset = t + 1

acc = 0.0
r = 0.0

[loop start:32
x = x + 0.1*sin( t + 2.0*y )
y = y + 0.1*sin( t + 2.0*x )
b = sin(0.1*t)
a = iq_noise2(x*1.5 + b, y*1.5 + b)*6.2831 - offset
dirx = cos(a)
diry = sin(a)
		
h = loop/32.0
w = 4.0*h*(1.0-h)
ttt = w*tex_noise2(u*0.25, v*0.25)

r = r + w*ttt
acc = acc + w
		
u = u + 0.008*dirx
v = v + 0.008*diry
loop end]

r = r/acc
g = r*0.8
b = r*0.5
