Messing with Processing and a black hole

I put together a Sketch in Processing this evening. It generates a canvas at whatever size you want, adds a black hole and a couple of thousand pixels that get sucked into the black hole with some simulated gravity. The final result is a bit like the image I had in my head when I started, so I’m happy with that. I would like it to be more awesome, but this will do for the time I have to play with right now.

I quite like the scratchy ‘pixely’ quality at ‘actual’ size, but that might be my nostalgia for older games and my taste in scrappy painting.

The code’s available over at http://www.openprocessing.org/sketch/119499 where you can hit the page a few times and generate variations of the image.

blackhole

blackhole

blackhole2

Anyway, enough with this post as I should be doing some real studying now (which involves reading a play).