---
title: isPointInPath
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/canvasrenderingcontext2d/1631233-ispointinpath
---

# isPointInPath

Determines whether a specified point is within the area defined by the current path.

## Declaration

```data
boolean isPointInPath(
    DOMPath path, 
    unrestricted float x, 
    unrestricted float y, 
    optional CanvasWindingRule winding
);
```

## Parameters

- `x`: The x-coordinate of the point in the canvas coordinate system.
- `y`: The y-coordinate of the point in the canvas coordinate system.

## Return Value

Return Value Returns true if the point is within the path.

## Discussion

Discussion All parameter values are in the canvas’s current coordinate system, subject to the current transformation matrix (rotation, scale, and so on).

## See Also

### Creating Paths (Lines, Curves, Arcs, and Shapes)

- [beginPath](webkitjs/canvasrenderingcontext2d/1632556-beginpath.md)
- [clip](webkitjs/canvasrenderingcontext2d/1631003-clip.md)
