Tech Tree of the Web

The history of web technology, 1945 to now: 112 ideas and the lines between them. Drag, scroll or press ← → to travel. Open any one for its story.

No. 063 / 112Seen 0 / 112Colophon

The Dynamic Web

Canvas element, 2004. Era IV, The Dynamic Web.

Era IV · 1999–2007

← drag · scroll · arrow keys →

20042dconst ctx = canvas.getContext('2d');ctx.fillStyle = 'orange';ctx.fillRect(10, 10, 120, 60);ctx.arc(200, 40, 30, 0, Math.PI * 2);

Pixels drawn from script into a <canvas> element, with no plugin. Typeset for this timeline: no licence-clean photograph of the thing itself was found.

Key details

When
2004 (announced July)
Who
Dave Hyatt, Apple
Where
Apple (WebKit)
Answered
It answered static images and plugins with an image element that scripts could draw on directly.
Led to
It was adopted by Gecko and Opera and standardized by the WHATWG as part of what became HTML5.

No. 063 · 2004 · Hypertext · Era IV, The Dynamic Web

Canvas element

Gave scripts a bitmap to draw on, so charts, games and image editors could run inside a page.

Facts

  1. Apple introduced canvas in 2004 for its Mac OS X WebKit component, where it powered Dashboard widgets and Safari. 1
  2. Hyatt described it as an image element that supports programmatic drawing, reached by calling a method named getContext. 2
  3. Hyatt wrote that canvas was how the hands of the Dashboard clock were drawn in HTML. 2
  4. Gecko 1.8 browsers added canvas in 2005, and Opera followed in 2006. 1

Quirks

  • In 2007 Apple reserved patent rights over the WHATWG canvas section, later disclosing the patents under W3C royalty-free terms. 1

Sources

  1. Wikipedia, Canvas element
  2. Hyatt, "Introducing the Canvas", via Daring Fireball, July 2004
Came from
Led to