A million-dollar pen vs. a pencil


You know this legend about how NASA spent millions to develop a pen that can write in zero gravity, and the russians have just used a pencil? Well, I was reminded about this by Dejan’s post in response to my post about the Random Gradient Wallpaper Generator.

I used an O(NxN) algorithm to generate a megapixel image that takes up about 5 MB on my desktop.

Dejan generated a 2x2 bitmap that takes up 70 bytes and let Windows stretch it with the exactly same effect. If you read my original post, go read this one, you’ll like it 🙂

Comments (5)

  1. Jon Galloway says:

    Wow, who knew Windows would stretch it so well! Side note – that million dollar pen thing isn’t totally true. http://www.snopes.com/business/genius/spacepen.asp

  2. fowl says:

    I can’t seem to get it to work, no matter what I try I just get 4 coloured boxes…

    This is on Windows XP.

  3. Yeah, it should work on Vista and above. But I mean – the out-of-the-box thinking is awesome!

  4. Dejan says:

    Thanks for the follow up post Kiril, glad that you liked the idea

    @fowl, I have no problems on Windows XP. I mentioned in my blog post that the image should be a 24bit bmp file and then Windows stretches the wallpaper properly, maybe try that

  5. fowl says:

    I’m using a 2×2 24bit bmp, straight from Paint, no less!

    🙂

    Oddness.

Skip to main content