Tuesday 7 June 2011

Screwing around with image distortion

I was playing around with bitmap files today and I wrote some code that totally distorts an image in interesting ways. Take a look at a result from my code:
I wrote my code to split the RGB values of each pixel in to 3 different pixels. Each of the R, G and B values are used as the R value for the 3 new pixels. The G and B for the new pixels are chosen randomly. I need to tweak it a little bit more and add more functionality to the program. I think I am on to something here, though, because I'm getting some pretty interesting patterns. Tomorrow I'll work on my code some more and see if I can come up with any other interesting effects. Well that's what I did today, hopefully it wasn't too boring.
Bye for now folks.


Edit: Someone requested my source code. Written sloppily in Just BASIC.
Pastebin of the code

3 comments:

  1. Looks nice, would be interesting to see what else you can do with it!

    ReplyDelete
  2. Could you upload your code somewhere too? I'd like to see specifically how you did this...

    ReplyDelete