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

pixels = W:1024 H:1024

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

c = y
b = x + y

i = 17
f = floor(b/2)
o = (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 16
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 15
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 14
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 13
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 12
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 11
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 10
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 9
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 8
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 7
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 6
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 5
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 4
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 3
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 2
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

i = 1
f = floor(b/2)
o = o + (b-f-f)/exp2(i)
b = c-f-f
c = -f

r = o
g = o
b = o
