Closed codingbootcampseu closed 3 years ago
Use the sketch from the previous task.
fireBrush()
x
y
draw()
Hints
The anatomy of a function with parameters looks like that.
function customFunction(parameter1, parameter2) { }
Example Solution
done
Use the sketch from the previous task.
fireBrush()
fireBrush()
function has ax
andy
parameterfireBrush()
function itself takes the original x and y coordinates of the mousex
andy
are randomized inside the function itselffireBrush()
function inside thedraw()
function when the mouse is pressedHints
The anatomy of a function with parameters looks like that.
Example Solution