search
Saturday, 2017 September 9, 20:01 — merch

a poster

Sometimes I search my blog for this picture and scratch my head in puzzlement that it’s not here, before remembering that I posted it on Google Plus back when I used that.

So here it is. Stephen Guerin (the shaven one) displays his canvas print of one of my designs.

The colors came out better than I hoped, in stark contrast to a couple of mugs with related designs that I got from the same shop.

• comment by Anton — Sunday, 2017 September 10, 11:50

I may as well say how this works. For each pixel, convert the coordinates to Gray code, then

red = ((x & 0x800 | y & 0x400) >> 4) | ((y & 0x100 | x & 0x080) >> 3) | ((y & 0x20 | x & 0x10) >> 2) | ((x & 4) >> 1) | (x & 1)

green = ((y & 0xA00 | x & 0x500) >> 4) | ((y & 0x40 | x & 0x20) >> 3) | ((y & 8) >> 2) | ((y & 2) >> 1)

blue = ((x & 0x200) >> 2) | ((y & 0x80 | x & 0x40) >> 1) | (y & 0x15 | x & 0x0A)

thus assigning each bit of the coordinates to some bit of the color channels; then convert back from Gray code to get the final colors.

• comment by Anton — Friday, 2017 December 22, 23:39

One of those two mugs has since grown on me some.

Subscribe without commenting