HTML5 Canvas Mouse Events

How to handle mouse events on your Canvas?

Possible Mouse Events on Canvas

  • mousedown / mouseup

Html

<html lang="en">
<head>
<title>Canvas Mouse Events</title>
<meta charset="UTF-8">…