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

pixels = W:1024 H:1024

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

#d = length2(x, y)
#th = atan2(y, x)

t = 2.1585

r = 0.5
g = 0.5
b = 0.5

angle = PI*0/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
r = r + value

angle = PI*1/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
r = r + value
g = g + value

angle = PI*2/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
g = g + value

angle = PI*3/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
g = g + value
b = b + value

angle = PI*4/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
b = b + value

angle = PI*5/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
r = r + value
b = b + value


angle = PI*6/7
w = x * sin(angle) + y * cos(angle)
value = (sin(w + t) + 1) / 4
r = r + value
g = g + value
b = b + value

r = sin(r*5)
g = sin(g*5)
b = sin(b*5)
