🔳<canvas>

browser ⟩ canvas

Most of the Canvas drawing API is defined not on the element itself, but instead on a “drawing context” object obtained with HTMLCanvasElement.getContext().

<canvas> only supports two primitive shapes: rectangle and path.

Last updated

Was this helpful?