Hi guys, I stumbled upon a pretty cool html5 canvas utility library which uses jQuery to and html5 to create some awesome animation effects with the new canvas element. The days of using flash are over!
Demo API Core Library
Features
- .canvas – styles/actions of the canvas
- place(node) / .place(selector) – easy add to element for canvas
- .size(width, height) – size of canvas
- .background(color) – background color
- .register(canvas) – allowing effects to be given to multiple canvases on the same page
- .ctx – the graphics context
Usage Example
$("my_canvas").size(200, 200).background('black').add(function(ctx) {
ctx.fillStyle = "red"
ctx.fillRect(10, 10, 180, 180);
}).draw();
Sam Deering
View AuthorSam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.
jQuery
Share this article