This week we played around with loops, functions and classes. Below is a sample of following Shiffman’s videos and using this on creating multiple bubbles without having to write out each individual bubble.
I then tried experimenting with creating circles using cos and sin to make them turn around continuously.
Then I added nested loops to create rotating circles that covered the entire screen (for both the horizontal and vertical planes).
Played around with the fill color on a greyscale…
Then I changed my circles into a function of their own and played around with a grey scale gradient along each of the circles.
The final code and sketch can be seen here.
Overall, I’ve started to understand functions and loops, but still need to practice more with classes and converting existing functions into classes.
Leave a Reply