Fair Wheel on the water bank

This is my very first programming work that it was written in Processing. Processing is a software sketchbook and open source computer programming language for electronic arts, new media art, and visual design communities written in Java by Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computer Group at the MIT Media Lab. I used an image from Creative Common as below and wrote in Processing. It became a cartoony interactive artwork.

FairWheelOriginalimg

(https://c1.staticflickr.com/7/6154/6151624355_a3cce0dddd.b.jpg)

 

I added a few objects to interact with other functions, such as cursor moving, mouse press, mouse click, and drag, etc. Here is a demo and I will explain more down below:

 

 

I set up the main class for basic public setting and functions, then set each object for its class.  The building has many parts so that I used parent and child relationship to control it as a group. It helps easy to call each object and put them in order. For falling stars, bird and tree, I use an array list to make the process easier since it takes the same method or formula to create.

For function, moon or sun moves with cursor depends on sky background. The wheel rotating and a bird would go the opposite direction with cursor direction. While the cursor moving in different range on canvas, the lights in the building would turn on and off due to the cursor’s position to create a night to day time. Mouse click controls the tree switch on and off for electronic tree effect. Falling stars depends on mouse press and drag function. Lastly, boat on the water is an independent loop around from left to right on the canvas.

Processing has many cool libraries can create fun projects. You can check out my safe landing game that it was created in Processing as well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: