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

pixels = W:1024 H:1024

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

px = 1.0 - abs(1.0 - mod(x, 2.0))
py = 1.0 - abs(1.0 - mod(y, 2.0))
pz = 0.0
h = length3(px, py, pz)

px = abs(px)/(h*h) - 0.55
py = abs(py)/(h*h) - 0.55
pz = abs(pz)/(h*h) - 0.55
nh = length3(px, py, pz)
o = abs(nh - h)
h = nh

px = abs(px)/(h*h) - 0.55
py = abs(py)/(h*h) - 0.55
pz = abs(pz)/(h*h) - 0.55
nh = length3(px, py, pz)
o = o + abs(nh - h)
h = nh

px = abs(px)/(h*h) - 0.55
py = abs(py)/(h*h) - 0.55
pz = abs(pz)/(h*h) - 0.55
nh = length3(px, py, pz)
o = o + abs(nh - h)
h = nh

px = abs(px)/(h*h) - 0.55
py = abs(py)/(h*h) - 0.55
pz = abs(pz)/(h*h) - 0.55
nh = length3(px, py, pz)
o = o + abs(nh - h)
h = nh

o = o*0.1

r = o
g = o
b = o
