Processing

For the first part of the lesson on programming we were introduced to a small amount of phrases that will be used throughout the next 3/4 years of our course. Such phrases included were: Variable, Parentheses, Integrated Development Environment (IDE), Functions, Methods, Class, Instant, Float, Loop, Complier, Conditional, Object Orientated Programming (OOP) and Camel case.

In the next part of the lesson we used a Processing to write lines of code. The code we created is shown below:

Untitled-1

1) When the code is run this is generated. When the mouse is moved ellipses are drawn.

Untitled-1

2) If the mouse is clicked where the x position is greater than 400 then the background is cleared

Untitled-1

3)  Else if the mouse is clicked where the x position is less than or equal to 200 the background is cleared and changed to a mid grey

Untitled-1

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s