This repo contains proposal for an updated version of the Canvas 2D API, following a set of rationales.
-
Canvas context loss. Allow canvas to be discarded and re-drawn by demand.
-
willReadFrequently. context creation attribute.
-
Array color input. support for new color input on Canvas.
-
Text modifiers. CSS text/font properties on Canvas.
-
Clear function. Draw primitive.
-
RoundRect. Draw primitive.
-
Perspective transforms. Allow for perspective transforms Canvas 2D rendering. Support 4x4 transform matrices.
-
Conic Gradient. Draw primitive.
-
Modern filters. Support composited filters, create a filter object that can be updated, and support more SVG-like filters.
-
Batch drawImage. Support for multiple images being drawn within a single API call.
-
Recorded pictures. Create a record object that receives all the commands from a Canvas2D and can be replayed multiple times.
-
Conic curves. Draw primitive.
-
Batch text rendering.
-
Text blob.
-
Path2D Inspection. Allow inspection of Path2D objects, that are currently opaque.
-
Element as a source for drawImage.