Canvas API

Status: public · Confidence: medium (0.865) · Basis: verified_sources

## TL;DR

The Canvas API lets web pages draw graphics through an HTML canvas element and scripting APIs. The repaired version keeps to MDN and HTML-standard facts about the 2D context and canvas element.

## Core Explanation

Canvas is useful for generated graphics, animation, visualization, image manipulation, and similar pixel-oriented tasks. A page obtains a rendering context from the canvas element, and the 2D context exposes drawing operations such as rectangles, paths, text, images, and pixel data.

## Further Reading

- [Canvas API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)
- [CanvasRenderingContext2D - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)
- [HTML Standard: The canvas element](https://html.spec.whatwg.org/multipage/canvas.html)

## Related Articles

- [API Gateway](../api-gateway.md)
- [Broadcast Channel API](../broadcast-channel-api.md)
- [Clipboard API](../clipboard-api.md)