We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm currently working on a project, where i've loaded an background image and i want to draw about it when the mouse is pressed. Therefore i've determined an area consisting of four vectors.
If the mouse is pressed and inside the are the user should be able to draw. Instead Processing gives me the error "The funtion containsPoint(PVector[],int,int) does not exist." but i've just this function in another sketch and int worked.
Do you have any hints why i keep getting an error?
Here's the code: http://pastebin.com/XUAPfWed
Thank's in advance! :)
Answers
Processing doesn't have a containsPoint() wrapper function, you'll have to write your own or copy it from this thread and paste it at the end of your sketch. ;)
Or simply take this optimized version:
Wow, didn't know that. Now it's awesome! Thank you very much! :)
No problem. :)