Documentation / @ripl/canvas / canvasIsPointInPath
Function: canvasIsPointInPath() ​
canvasIsPointInPath(
ctx,path,x,y,fillRule?):boolean
Defined in: canvas/src/utilities.ts:407
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