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

pixels = W:1024 H:1024

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

zx = 1.0
zy = 1.0
f = 4.0
g = 4.0
t = 123.45

[Loop Start:32
w = loop*0.7+t
z1x = 2.0*cos(w)
z1y = 2.0*sin(w)
zt = complex_inv_r(zx+x, zy+y) - complex_inv_r(zx-x, zy-y)
zy = complex_inv_i(zx+x, zy+y) - complex_inv_i(zx-x, zy-y)
zx = zt
f = min(f, (zx+z1x)*(zx+z1x) + (zy+z1y)*(zy+z1y))
g = min(g, (zx-z1x)*(zx-z1x) + (zy-z1y)*(zy-z1y))
Loop End]

f = 1.0+log(f)/15.0
g = 1.0+log(g)/15.0

r = abs(g)
g = abs(f)
b = 0.0
