Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contains for all shapes. #39

Open
ChristerNilsson opened this issue May 23, 2018 · 0 comments
Open

contains for all shapes. #39

ChristerNilsson opened this issue May 23, 2018 · 0 comments

Comments

@ChristerNilsson
Copy link

I've been missing an easy way of detecting which shape I'm clicking on in p5.
Especially after some translations, rotations and scalings.
When I found Rune, I was hoping it would solve this problem.
But, there are no mouseclick examples at all.

Polygon seem to be the only class implementing the method contains.
But, it doesn't seem to be the an ancestor class of other classes.

Would be nice if it was possible to ask the stage for a list of shapes containing the point mouseX,mouseY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant