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
| Parameter | Type |
|---|---|
ctx | CanvasRenderingContext2D |
path | CanvasPath |
x | number |
y | number |
fillRule? | FillRule |
Returns
boolean