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

pixels = W:1024 H:1024

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

t = 123.456
ts = sin(t)
tc = cos(t)

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

u = x*tc-y*ts
v = y*tc+x*ts
u = abs(u) - 1.0
v = abs(v) - 1.0
k = length2(u,v)
u = u*k
v = v*k
x = u
y = v

o = length2(u, v)

r = o
g = o
b = o
