is_point_in_stroke method

is_point_in_stroke

Reports whether or not the specified point is inside the area contained by the stroking of a path.

Returns

Returns true if the point is inside the area contained by the stroking of a path, otherwise false.

def is_point_in_stroke(self, x, y):
    ...
ParameterTypeDescription
xfloatThe X coordinate of the point to check.
yfloatThe Y coordinate of the point to check.

is_point_in_stroke

Reports whether or not the specified point is inside the area contained by the stroking of a path.

Returns

Returns true if the point is inside the area contained by the stroking of a path, otherwise false.

def is_point_in_stroke(self, path, x, y):
    ...
ParameterTypeDescription
pathPath2DA Path2D path to check.
xfloatThe X coordinate of the point to check.
yfloatThe Y coordinate of the point to check.

See Also