Skip to content

Documentation / @ripl/canvas / applyCanvasFill

Function: applyCanvasFill()

applyCanvasFill(ctx, element, fillRule?): void

Defined in: canvas/src/helpers.ts:222

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

Parameters

ParameterType
ctxCanvasRenderingContext2D
elementContextText | CanvasPath
fillRule?FillRule

Returns

void