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
ich sehe Ähnlichkeiten zu Turbo Pascal, wie die werte von einzelnen Funktionen, in den anderen mitgenommen werden, Local und Global.
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