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

pixels = W:1024 H:1024

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

zr = x
zi = y

[Loop Start:20
z2r = complex_mul_r(zr, zi, zr, zi)
z2i = complex_mul_i(zr, zi, zr, zi)
z3r = complex_mul_r(z2r, z2i, zr, zi)
z3i = complex_mul_i(z2r, z2i, zr, zi)
z4r = complex_mul_r(z2r, z2i, z2r, z2i)
z4i = complex_mul_i(z2r, z2i, z2r, z2i)
dr = complex_div_r(z4r - 1, z4i - 1, 4*z3r, 4*z3i)
di = complex_div_i(z4r - 1, z4i - 1, 4*z3r, 4*z3i)
zr = zr - dr
zi = zi - di
Loop End]

r = zr
g = zi
b = abs(zr)
