Skip to content

Documentation / @ripl/canvas / applyCanvasFill

Function: applyCanvasFill() ​

applyCanvasFill(ctx, element, fillRule?): void

Defined in: canvas/src/utilities.ts:334

Fills a canvas path or text element, dispatching text-along-path when applicable.

Parameters ​

ParameterType
ctxCanvasRenderingContext2D
elementContextText | CanvasPath
fillRule?FillRule

Returns ​

void