HTML and CSS Reference
Creating a Simple Object Framework for the Canvas
the HTML5 Canvas. The fact is, large applications can get out of hand very easily if you put
applications for the HTML5 Canvas, you will need to develop a framework for your applic-
ations. There are many freely available frameworks that exist right now for you to use (for
example, Impact.js , Easel.js ), but we are going to focus on creating our own small framework
for Canvas application development.
In this section, we will create a drag-and drop-application. You will click on colored “bulbs”
keeping track of an infinite number of objects.
Figure 11-7. Drag-and-drop application example