Draw with Your Mouse on an HTML Canvas

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

The canvas element exposes a 2d context which allows you to draw lines using the moveTo, lineTo, and stroke api. You can combine this with Mouse events to make a simple drawing app.