Latest

Slippy Map

Tim Hutt has created a canvas slippy map. A slippy map is a map that allows you to dynamically pan the map simply by grabbing and sliding the map image in any direction. For this demo, OpenStreetMap tiles are dynamically downloaded using JavaScript and drawn directly onto the canvas.

The east coast of Oz

Comments from the Author:

This is just a demo. It appears to be basically the same as normal slippy maps (e.g. google maps), however there is a lot of potential I haven’t explored. Possibilities include: smooth zooming, complicated map overlays, more shininess, etc.

Creating an RSS Icon

Michael Strasser has created a tutorial which goes through the steps of creating a RSS icon using the canvas element.

The RSS icon in all it's glory

While I don’t necessarily think that canvas should replace the common image for these kinds of tasks, thanks to the complexity of the RSS icon Michael’s tutorial covers creating quarter circles, gradients and rounded rectanges – all useful skills to know if your starting to learn how to use the canvas element.

Sketchpad

Sketchpad by Michael Deal uses the canvas element and a lot of JavaScript to create an impressive painting application.

Sketchpad’s drawing tools allow for the usual brush, pencil, fill and text items but it also provides tools for spirographs, unusual shapes and stamps. Applying a pattern to these items is simple, meaning it’s easy to create something artistic even if you’re not particularly artistic yourself.

Not sure if this picture is pretty, or a mess... you decide!

The links along the top right offer more options to improve your image, and once you are happy with your image, you can save it out as a PNG. Give it a try!

QBASIC JS

QBASIC is an IDE and interpreter for a variant of the BASIC programming language, and Steve Hanov has created an implementation of QBASIC in Javascript. The tool uses canvas to display the screen, which is where your compiled code will eventually end up. Thankfully, Steve has included one of the original QBASIC examples – Nibbles, a variant on the popular Snake game.

More snake action with 'Nibbles'

Steve is currently running a guide of how to implement a virtual machine like QBASIC in JavaScript – and is well worth a read.

Image Washing

Hernan Amiune has created this interesting ‘image washing’ effect using canvas. The canvas starts blank or ‘dirtied’. Then raindrops fall from the top of the canvas slowly revealing the picture as if water was being used to clean the picture.

Reveal!

Comments from the Author:

The experiment combines a particle system and the image pixels alpha channel to create the effect.

Particle Message

Steven Sanborn has created this unique messaging canvas demo. The message is produced by pulling together animated circles and alpha sprites to form the letter.

Give me a 'C'

You can enter your own custom message in the box below the demo, and also increase settings such as the number of particles; whether they fade and the direction they bounce after they have shown each letter.

Welcome to Canvas Demos

Home to applications, games, tools and tutorials that use the HTML 5 <canvas> element - which allows for dynamic scriptable rendering of bitmap images.

Browser check

  • canvas
  • canvas text

It looks as though your browser does not support canvas natively. Why not try one of these browsers?

Learn more about canvas support

Canvas news

Site news

Submit your demo

Submit your demo, and if we like it we'll feature it on Canvas Demos!