Archive results for:

Painting with Canvas

Think of HTML5 canvas in the same way you would think of a painter’s canvas: a rectangular area that we can draw upon.

Similar to the painter, we have the ability to draw lines, circles, squares — any shape can be constructed. Further, we can style these shapes, animate them, specify how they should interact with one another, and much more.

Detecting support for canvas is simple: ensure that the getContext method is available:

Or you can use Modernizr:

Read more ›