Documentation / @ripl/canvas / canvasIsPointInStroke
Function: canvasIsPointInStroke() ​
canvasIsPointInStroke(
ctx,path,x,y):boolean
Defined in: canvas/src/utilities.ts:412
Tests whether a point is on the stroked outline of a canvas path.
Parameters ​
| Parameter | Type |
|---|---|
ctx | CanvasRenderingContext2D |
path | CanvasPath |
x | number |
y | number |
Returns ​
boolean