Name
ccontext:InStroke -- check if point is inside stroke area
Synopsis
ok = ccontext:InStroke(x, y)
Function
Tests whether the given point is inside the area that would be affected by a ccontext:Stroke() operation given the current path and stroking parameters. Surface dimensions and clipping are not taken into account.

See ccontext:Stroke(), ccontext:SetLineWidth(), ccontext:SetLineJoin(), ccontext:SetLineCap(), ccontext:SetDash(), and ccontext:StrokePreserve().

This function returns a non-zero value if the point is inside, or zero if outside.

Inputs
x
X coordinate of the point to test
y
Y coordinate of the point to test
Results
ok
a non-zero value if the point is inside, or zero if outside

Show TOC