HTML and CSS Reference
In-Depth Information
Listing 8.20. index.html—Capturing the mouse movement
Note
To keep the
draw()
function simple, in this section we've removed the code and buttons
for
Grayed
and
Framed
. Leaving them in your code won't harm anything, but bear this
in mind as you follow the instructions to replace and include code in this section.
Step 2: Display the captured path over the video
The next step is to display the path within the
draw()
function. The following listing has
yet another new
draw()
function.