Skip to content

Documentation / @ripl/canvas / applyCanvasStroke

Function: applyCanvasStroke() ​

applyCanvasStroke(ctx, element): void

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

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

Parameters ​

ParameterType
ctxCanvasRenderingContext2D
elementContextText | CanvasPath

Returns ​

void