wooga/euruko-golf — pull request #4 by halfbyte (2012-05-03 22:38:40+00:00)
Title: My Submission: Minimalistic rendering in 63 bytes

Oh the truthyness of zero, you cost me so much! (Well. 3 bytes, currently)

Nevertheless, here's my rather minimalistic (and, yes, less artistic) approach, cut down to 63 bytes.

Runs on:
* ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
* ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
* ruby 1.9.2p318 (2012-02-14 revision 34678) [x86_64-darwin11.3.0]

I tried to pack the actual pixel data into a string, but any approach to unpack a 9 bytes string into something I could bit-shift takes way more than the additional 9 chars I currently need to lay it out in hex.

I'm curious if someone can beat me on size :)