Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website
Read more:
Posts Tagged ‘getContext’

July 25th, 2011

How to draw shapes in HTML5 canvas

No Comments, HTML, by Joakim Ling.

Canvas is a way to programmatically draw using Javascript, this is something new in HTML. You can for instance create simple diagrams, charts or graphs, better looking interfaces without thousands of images and work around CSS limitations. There is a set of drawing tools such as rectangles, arcs, paths, line drawing, bezier and quadratic curves. You can also add effects and do some basic transformations.