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

pixels = W:1024 H:1024

zx = from -3.0 to 3.0 W
zy = from -3.0 to 3.0 H

f = 4.0
g = 4.0
x = 1.2*(-0.86)
y = 1.2*(0.01)

[Loop Start:16
zt = complex_inv_r(zx + x, zy + y) + zx - x
zy = complex_inv_i(zx + x, zy + y) + zy - y
zx = zt
f = min(f, (zx - x)*(zx - x) + (zy - y)*(zy - y))
g = min(g, (zx + x)*(zx + x) + (zy + y)*(zy + y))
Loop End]

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

r = 1 - g*abs(g)
b = 1 - g*abs(f*f)
g = 1 - g*abs(f*g)
