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

pixels = W:1024 H:1024

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

zx = x
zy = y
f = 4.0
g = 4.0

[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)
