Toggle navigation
Mr. Code's Wild Ride
Mr. Code
Curriculum
Showcase
Python
Math
Games
Typing
Sign in
Drawing Tool
Level 5
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Step 12
Step 13
Step 14
Step 15
Basic Features
Step 8:
Stop drawing when the user moves the mouse off the canvas.
Hint:
Use a
mouseout
event listener:
yourCanvasVariable.addEventListener(`mouseout`, stopDrawing)
Last step
Next step
×
Sign in