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

pixels = W:1024 H:1024

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

gx = floor(x)
gy = floor(y)
fx = fract(x)
fy = fract(y)

px = -1
py = -1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = pow(tx^4 + ty^4, 0.25)

px = -1
py = 0
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = -1
py = 1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 0
py = -1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 0
py = 0
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 0
py = 1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 1
py = -1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 1
py = 0
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

px = 1
py = 1
qx = (gx+px)*2 + (gy+py)*5
qy = (gx+px)*5 + (gy+py)*2
tx = px + fract(sin(qx)*5) - fx
ty = py + fract(sin(qy)*5) - fy
f = min(f, pow(tx^4 + ty^4, 0.25))

r = f
g = f
b = f
