HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Canvas Object : Draw a rectangle if the point 20, 50 is in the current path
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
isPointInPath() | 4.0 | 9.0 | 3.6 | 4.0 | 10.1 |
The isPointInPath() method returns true if the specified point is in the current path, otherwise false.
JavaScript syntax: | context.isPointInPath(x, y); |
---|
Parameter | Description |
---|---|
x | The x-coordinate to test |
y | The y-coordinate to test |
❮ Canvas Object