Extension Canvas2d

Maintained by Team canvas2d

Canvas2dBlendmode

Sets the blend mode (composite operation) for the canvas2d ops below it

Canvas2dCircle

Draws a circle or arc on a canvas2d, filled, stroked or as clip path

Canvas2dCompose

Creates a 2d canvas, runs the canvas2d ops below it and outputs the canvas element, manual size, maximized or contained in its parent

Canvas2dDrawimage

Draws an image, video or canvas element onto a canvas2d, optionally cropped and scaled to a destination rectangle

Canvas2dFillStyle

Sets the fill color for the canvas2d ops below it

Canvas2dGetColor

Reads the RGBA color of one pixel of a canvas2d

Canvas2dLines

Draws one or more lines from point arrays on a canvas2d, optionally smooth, closed or filled

Canvas2dRect

Draws a rectangle on a canvas2d, filled, stroked or as clip path, optionally with rounded corners

Canvas2dResetTransform

Resets translation, rotation and scale for the canvas2d ops below it

Canvas2dShadow

Adds a drop shadow to everything drawn by the canvas2d ops below it

Canvas2dStrokeStyle

Sets stroke color, line width, caps, joins and dashes for the canvas2d ops below it

Canvas2dText

Draws text on a canvas2d, optionally wrapped or fitted to a width, outputs the text size

Canvas2dTransform

Translates, rotates and scales the canvas2d ops below it

CanvasImage

image(img) element op