title: HTML5 Polygonic Selection onmousemove
body: <p>I need functionality like Photoshop polygon selection tool in HTML 5. I tried using HTML5 Path properties and I can draw line on canvas but can't have logic to make that line join and make polygon selection.</p>