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

pixels = W:1024 H:1024

x = from 0 to 1023 W
y = from 0 to 1023 H

f = 0.02
t = 88.99
k = 0.0

w = 5
d = PI/w
e = 1.0/(1.0 + w)

k = k + e + e*tan(cos(0*d)*x*f + sin(0*d)*y*f + t)
k = k + e + e*tan(cos(1*d)*x*f + sin(1*d)*y*f + t)
k = k + e + e*tan(cos(2*d)*x*f + sin(2*d)*y*f + t)
k = k + e + e*tan(cos(3*d)*x*f + sin(3*d)*y*f + t)
k = k + e + e*tan(cos(4*d)*x*f + sin(4*d)*y*f + t)

r  = k
g  = r
b  = r
