Easy Tutorial
❮ Att Select Form Att Keygen Name ❯

HTML canvas isPointInPath() Method

HTML canvas Reference Manual

Example

Draw a rectangle if the point 20,50 is within the current path:

JavaScript:


Browser Support

Internet Explorer 9, Firefox, Opera, Chrome, and Safari support the isPointInPath() method.

Note: Internet Explorer 8 and earlier versions do not support the <canvas> element.


Definition and Usage

The isPointInPath() method returns true if the specified point is within the current path, otherwise it returns false.

| JavaScript Syntax: | context.isPointInPath(x, y); | | --- | --- |

Parameter Values

Parameter Description
x The x-coordinate to test.
y The y-coordinate to test.

❮ Att Select Form Att Keygen Name ❯