Canvasity.isPointInPath

Tests whether a point is in or on the current path.

Interior areas are determined by the non-zero winding rule, with all open subpaths treated as implicitly closed by a straight line beforehand. Points exactly on the boundary are also considered inside. The point to test is interpreted without being affected by the current transform, nor is the clip region considered. The current path is left unchanged by this test.

Return Value

Type: bool

true if the point is in or on the current path.

Meta