#https://www.shadertoy.com/view/lsd3DH

pixels = W:1024 H:1024

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

zx = 0
zy = 0
zz = 0

k = x*x + y*y
kx = x/k
ky = y/k

[Loop Start: 50
t = zx*zx - zy*zy + kx
zy = 2*zx*zy + ky
zx = t
w = length2(zx, zy)
zx = if(w>2, zx + 0.02*loop, zx)
zy = if(w>2, zy + 0.02*loop, zx)
zz = if(w>2, zz + 0.02*loop, zz)
Loop End]

r = zx
g = zy
b = zz
