Skip to content

Documentation / @ripl/canvas / canvasIsPointInPath

Function: canvasIsPointInPath()

canvasIsPointInPath(ctx, path, x, y, fillRule?): boolean

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

Tests whether a point is inside the filled region of a canvas path.

Parameters

ParameterType
ctxCanvasRenderingContext2D
pathCanvasPath
xnumber
ynumber
fillRule?FillRule

Returns

boolean