← Back to release summary

Updated Canvas 2D API

Category
Graphics
Type
Chromium catches up
Status
No active development (Chrome No active development)
Intent stage
Start prototyping

Summary

We are expanding and modernizing some part of Canvas 2D API, including: - Canvas context loss: allow canvas to be discarded and re-drawn by demand. - willReadFrequently. context creation attribute - Array color input. - CSS Text modifiers. - reset() function - RoundRect - Perspective transforms. - Conic Gradient. - Modern filters

Motivation

The current Canvas 2D API was originally proposed in 2013. Since then, a lot of 2D graphics APIs have appeared and changed what developers expect from a good 2D API. This proposal tries to modernize Canvas 2D API, considering current and future usage of Canvas and considering 3 pillars: feature parity with other 2D APIs; access to current capabilities of the Web/CSS; performance improvement.

Standards & signals

Ecosystem

Explainers: https://github.com/fserb/canvas2D/

View on chromestatus.com