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

pixels = W:1024 H:1024

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

o = 0

x = x - 0.5*y

[Loop Start: 8
x = 2*fract(x)
y = 2*fract(y)
o = if(greater_equal(x, 1) & greater_equal(y, 1), o+1, o)
Loop End]

r = o
g = o
b = o
