Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Test if mouse clic inside an ofPath shape

$
0
0

@Gallo wrote:

Hello,

I am working with shapes as ofPath. I would like to select a shape with the mouse so i need to test if the mouse is clicked inside the shape.

I know there is a function inside(x, y) but tied to the class ofPolyline.

Is there a way to access such a method from within ofPath or do i have to convert the path to a polyline everytime i need to test the mouse clic ?

thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929