Skip to content

Documentation / @ripl/canvas / canvasIsPointInStroke

Function: canvasIsPointInStroke()

canvasIsPointInStroke(ctx, path, x, y): boolean

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

Tests whether a point is on the stroked outline of a canvas path.

Parameters

ParameterType
ctxCanvasRenderingContext2D
pathCanvasPath
xnumber
ynumber

Returns

boolean