In this recipe, we'll get to the meat of the
Events class by defining regions and adding event listeners to them. We'll draw a triangle, attach a
mousemove event listener to it, we'll draw a rectangle with no event listeners, and finally we'll draw a circle and attach a
mouseup event listener to try out each of the different desktop event listeners supported by the
Follow these steps to draw a triangle, a rectangle, and a circle, and then attach mouse event listeners to each shape:
<script src="events.js"> ...