We are serious
about web platforms

Centurion mag, this is where you'll find release announcements, developer tips, and periodic updates from the Centurion team.

HTML5 canvas experiment

Written by Mathias Desloges in Labs on 02/05/11

HTML5 has bring many new fun APIs to javascript developpers. Some are very promising but a bit raw and not so plug and play. Canvas API is one these very promising API, maybe the "Flash killer". But using it for complex application is not really developper friendly.

To explore the API and to better understand how it works, I have done a little library to make use of canvas easier.

the basic HTML5 canvas API provide pixel level functions, whereas front developper use to work with DOM elements (div, p, span, ...) and they don't care about each pixel of these elements.

My idea was to provide to the developper a kind of display tree to manipulate "elements" displayed in canvas.

Today, many good and open sources canvas library exists, our demo HTML5 canvas library is clearly not for production prupose but it was and it is a good way to learn more about canvas API "native" features.

Tags: Javascript , html5

0 comments

Add a comment

Please, fill in the field with the charactere 3 of this string riuouumu
 
 
Fork me on Github