Hello I am trying to write a simple function which allows you to create Spline curve by clicking the mouse. I have some basics in OOP but I am new to processing. here is my source code (which doesn't work :( )
I also need to store the information about the spline, no matter how many times the user clicks (that's why I am using array list, but I'm affraid it only stores objects not primitives :( ) and of course RMB closes the spline :) Has anyone some Idea how to make it work? I will be really grateful :)
Well, it will create quickly hundred of Lasso objects, which is probably not what you want. Move the Lasso object out of draw(), so it becomes global. And manage the mouse events in they respective event managers (mousePressed() and so on).
Leave a comment on PhiLho's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic