A million-dollar pen vs. a pencil

A million-dollar pen vs. a pencil

  • Comments 5

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 :)

  • 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

  • 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.

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

  • 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

  • I'm using a 2x2 24bit bmp, straight from Paint, no less!

    :)

    Oddness.

Page 1 of 1 (5 items)
Leave a Comment
  • Please add 5 and 3 and type the answer here:
  • Post