Functions are the basic unit of labor in your code. Take a sketch you’ve already done and re-organize the code into functional units of labor that you define. You can also conceive of an entirely new world of labor. What kinds of labor does it take to make your sketch run?
setup() and draw() as clean as possible, and do everything (calculations, drawing, etc.) in functions that you define.Reorganized self-portrait using functions
https://editor.p5js.org/yuxuanqi9817/full/zJVjvmT10
I started with sketching out a few ideas and writing out possible functions to set up within them:

A flashing disco ball, a synthesizer and a shooting balloons game
I decided to go with the shooting ballon one since it seems more feasible…

For this assignment I mainly practiced putting everything into separate functions. With the knowledge of functions it was much easier and clearer to toggle between various motions.
Problem:
I am still struggling with calling a reusable function that has some kind of movement multiple times.