Get flash to fully experience Pearltrees
In the first tutorial I showed how to create a basic data structure for shapes on an HTML5 canvas and how to make them selectable, draggable, and movable. In this second part we’ll be reorganizing the code a little bit and adding selection handles so we can resize our Canvas objects. The finished canvas will look like this: Click to select a box. Click on a selection handle to resize.
I’m writing a book on HTML5, including Canvas! Click here for more information. Wait! I’ve given this tutorial a major overhaul and you should really read the new one here instead.