Instructional Video

Mouse Interaction, Computer Programming

Curated and Reviewed by Lesson Planet

Drawing objects based on where the user's mouse is located can be a beneficial and fun coding activity for new JavaScript coders. Here, the speaker shows how to use the mouseY and mouseX variables in a small section of code that draws a circle based on the mouse's location. You and your students will be amazed at how easy it is to get exciting results.

3 Views 1 Download
Classroom Considerations
  • This video is hosted on YouTube
Pros
  • Simple introduction to using information about the mouse's location to draw an object
  • Clear explanation 
Cons
  • At the time of this review, the video has a bug and stops working about halfway through. The speaker's voice is clear, but the coding demonstration doesn't continue. This might be an excellent opportunity for your class to work out precisely what the speaker intended to show on their own.