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

pixels = W:1024 H:1024

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

fx = fract(x) - 0.5
fy = fract(y) - 0.5
s = sin(PI/4)
c = cos(PI/4)
qx = fx*s + fy*c
qy =-fx*c + fy*s
size = 0.4

#length(max(abs((fract(uv)-0.5)*mat2(sin(PI/4.),cos(PI/4.),-cos(PI/4.),sin(PI/4.)))-size,0.))
qx = max(abs(qx) - size, 0)
qy = max(abs(qy) - size, 0)
w = length2(qx, qy)
k = clamp(0, 1, w/0.06)

r = k
g = k
b = k
	


