Closed codingbootcampseu closed 3 years ago
Start with a new p5 sketch.
Hints
You can use global variables to save the current position of the comet which can be incremented in the draw() function.
draw()
let posX = 0; function draw() { circle(posX, 100, 30); posX = posX + 1; }
Bonus
The comet should get bigger while it moves through the canvas.
The comet should have a fading tail.
Example Solution
inkl bonus, Eigeninitaive leider nicht geklappt
Start with a new p5 sketch.
Hints
You can use global variables to save the current position of the comet which can be incremented in the
draw()
function.Bonus
The comet should get bigger while it moves through the canvas.
The comet should have a fading tail.
Example Solution