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

pixels = W:1024 H:1024

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

n = 5.9
br = pow(2.0, ceil(y * n))
fr = fract(y * n)
v = cos(PI * (x * br + pow(fr, 1.0 - fr) * 0.5 * sign(sin(PI * x * br))))
k = pow(0.5 - 0.5 * v, (fr * 1.5 + 0.5) * 100.0)

r = (1.0 - y)*k
g = y*k
b = k
