Canvas Tutorial

Last Updated:

Canvas History

Canvas was originally created by Apple in 2004 to implement Dashboard widgets and to power graphics in the Safari browser, and was later adopted by Google Chrome, Firefox, Opera and Edge. Today, canvas is a part of the new HTML5 specification for next generation web technologies.

How to use Canvas?

The HTML5 canvas is an HTML tag that you can embed inside an HTML document for the purpose of drawing graphics with JavaScript. Since the HTML5 canvas is a bitmap, every pixel drawn onto the canvas overrides pixels beneath it.

Purpose of Canvas

Create and modify 2D drawings, text, and bitmap images.

Use algorithms for math-based movement and physics interactions

Incorporate and manipulate video, and add audio.

Build a basic framework for creating a variety of games.

Use bitmaps and tile sheets to develop animated game graphics.

Demo

Share this Page

Meet the Author