
HTML5
Get flash to fully experience Pearltrees
code · Video for Everybody!
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.
Selectable Shapes Part 2: Resizable, Movable Shapes on HTML5 Canvas - simonsarris.com
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.

