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