Comment by anossov on 24/07/2014 at 14:58 UTC*

8 upvotes, 0 direct replies (showing 0)

View submission: What If?: Ink Molecules

View parent comment

There are 161 black pixels in this image: http://what-if.xkcd.com/imgs/a/106/pixels.png

Fun fact: Randall was a little sloppy and left some pixels that are black, but transparent. There are 161 black non-transparent pixels, 917 black transparent pixels and 1962 white transparent pixels.

In [54]: i = requests.get('http://what-if.xkcd.com/imgs/a/106/pixels.png').content                                                                                                    
In [55]: io = StringIO(i)
In [56]: im = Image.open(io)
In [57]: im.getcolors()
Out[57]: [(1962, (255, 0)), (161, (0, 255)), (917, (0, 0))]

Replies

There's nothing here!