Jordan Eldredge

A C program whose source code forms a Magic Eye

The The International Obfuscated C Code Contest is (was?) and amazing annual contest to see who could come up with the most interesting obfuscated use the the C programming language.

My all time favorite is this entry from 2001:

It’s a program that takes in a depth map and generates an ascii Magic Eye (remember those books of seemingly random patters that when you squinted at them correctly revealed a 3D image?). What’s more impressive though, is that the code itself is a Magic Eye! If you squint at the image correctly you should see the characters “IO CCC” in two centered lines of text.

Source code: https://web.archive.org/web/20200413104654/http://www.ioccc.org/2001/herrmann2.c

Hint file with more details: https://web.archive.org/web/20200413104605/http://www.ioccc.org/2001/herrmann2.hint

Tags: share