#https://www.shadertoy.com/view/4djXz1

pixels = W:1024 H:1024

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

yy = 0.2*smoothstep(0.0,-0.5,y)
px = 0.0123*x - 1.156
py = 0.0123*y + 0.2735

ax = 0
ay = 0

[Loop Start:30
tx = ax + ax*ax-ay*ay + px
ay = ay + 2*ax*ay + py
ax = tx
Loop End]

f = step(length2(ax, ay),4)

r = f*cos(ax)
g = f*sin(ay)
b = ax*f+yy
