Thursday, 5 May 2011

Project Three - Coding Exhibition

At this stage I have chosen the term 'variable'.  I understand this one well because I have used it a lot in both of the previous projects.
On the Learning Processing web help site, I found this very simple definition:

Variables.

'Variables are used for storing values.'

I think that this is the first and obvious thing that comes to mind when talking about variables, but variables are also useful for saving time, they can change a code a lot - by only changing a number.

A good example of the use of variables is actually from my wallpaper

http://www.openprocessing.org/visuals/?visualID=24713

This link shows the first wallpaper in the series, everything is in order and symmetrical.

http://www.openprocessing.org/visuals/?visualID=24708

The link above shows how by adding variables, the end result changes completely.

A really simple example of a variable changing the way code works is this one :
http://www.openprocessing.org/visuals/?visualID=7724

No comments:

Post a Comment