Let’s get a treat for this cat.
In the draw()
function, under where we call cat()
, add the following:
ellipse(mouseX, mouseY, 30, 20);
Move the mouse around your canvas. Did you find a treat?
💬 Discuss
- How does the treat follow our mouse?
Let’s get a treat for this cat.
In the draw()
function, under where we call cat()
, add the following:
ellipse(mouseX, mouseY, 30, 20);
Move the mouse around your canvas. Did you find a treat?