Sorry, your ereader does not support the HTML 5 Canvas, so this example will not run. If you have Web access, click here to try running it in your browser instead.

Finger Painting

Click/tap a color below to select a color, and then drag/swipe on the canvas above to draw a picture.

Color selected: Black

Click here to return to the book

Get HTML5 for Publishers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.