Getting my head around variables.

I found variables hard to grasp at first but really it’s just something which stands for something that we can change. In processing you have to define your variable at the top of the script and then you can use it throughout. There are two types I’ve learnt so far, integers and floats. Integers being whole numbers and floats being decimals.

I found this tutorial series really helpful during this project as it clears up and adds to the things I’ve learnt in the workshops.

For instance it made me understand that by moving the background function from void setup, where it is just drawn once at the beginning, to void draw where it is drawn once every frame it changes the appearance when run as it doesn’t leave a trail when the background is in void draw because a new background is drawn every frame over the old one.

Test 1


Test 2


Leave a Reply

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

You are commenting using your 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