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.