The first time I wrote this program, it was a DOS-based program. I wrote my own putpixel routine in x86 assembly for it (among other things). It took me a few sleepless nights to finish writing it.
Today I got bored and wrote it again. It took less than a half hour this time.
Somehow, it was more satisfying the first time.