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

pixels = W:1024 H:1024

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

t = 18.6

sc = 128
px = x/sc
py = y/sc

l = length2(fract(px - 0.5) - 0.5, fract(py - 0.5) - 0.5)
rep = sin(floor(px - 0.5)*9.1 + floor(py - 0.5)*7.9 + t) * 5.0 + 8.0
c = (abs(0.5 - fract(l * rep + 0.5)) - 0.25) * sc / rep

grx = (abs(0.5 - fract(px)) - 0.05) * sc
gry = (abs(0.5 - fract(py)) - 0.05) * sc

r = min(min(c, grx), gry)
g = r
b = r
	


