Function parameters and arguments
5.2: Function Parameters and Arguments - p5.js Tutorial
code for this video.
Here he shows you how to repeat code on the screen in different locations without copying/pasting the code and changing the numbers.
Write a function when there are arguments and then use it multiple times with different arguments.
code for this video.
Here he shows you how to repeat code on the screen in different locations without copying/pasting the code and changing the numbers.
Write a function when there are arguments and then use it multiple times with different arguments.