like a carousel that’s turning – d springfield (again)

My mug at work has a pattern on it that could easily have been created with Processing. Several circular images are spaced regularly on a black background, and each image is made up of about fifty random lines criss-crossing the patch. I decided to create a Processing sketch using this design as a starting point, but adding some movement to make it a bit more interesting. The images should all rotate about a central image, and each one should also spin around its own centre at a random speed.

This is a candidate for practicising Object-Oriented Programing, so my first attempt looks very primitive because it concentrates on moving the images around the central one. I can add the spinning at a later date, and refine the way each one is drawn whenever I want to. My ultimate goal is to add a lighting effect, to give the impression of light and shade that changes as the images spin, but for now I need to focus on the basics.

Tags: ,

Friday, April 24th, 2009 coding

Leave a Reply