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

pixels = W:1024 H:1024

x = from -5 to 25 W
y = from -5 to 25 H

px = x + 0.58*y
py = y*1.15
fx = fract(px)
fy = fract(py)
px = px - fx
py = py - fy

v = fract((px + py)/3.0)

kx = px + step(fy, fx)
ky = py + step(fx, fy)
kx = if (v < 0.6, px + 1, kx)
ky = if (v < 0.6, py + 1, ky)
kx = if (v < 0.3, px, kx)
ky = if (v < 0.3, py, ky)

r = mod(kx, 2)
g = mod(ky, 2)
b = mod(kx, 2)
