Skip to content

Documentation / @ripl/canvas / renderTextAlongPath

Function: renderTextAlongPath()

renderTextAlongPath(ctx, element, method): void

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

Renders text character-by-character along a path using fill or stroke.

Parameters

ParameterType
ctxCanvasRenderingContext2D
elementContextText
method"fill" | "stroke"

Returns

void