Possible to dynamically make gridshapes?
Hello,
I'm wondering if it's possible to make gridshapes with input
from the mouse. I've included a patch with a script, which is
a modification of jitter tutorial 47.
There are some clues on these threads:
https://cycling74.com/forums/rendering-multiple-gridshapes-w-opengl-in-js
https://cycling74.com/forums/multiple-object-instances-with-javascript
but I guess I can't wrap my head around the syntax (I've never used prototyping before).
It might not even be possible, when I save I get the error message
"js jitter listener: can't make event object"
Any help or advice would be appreciated!
I'm also interested in making a similar patch, and I've been having the same problem with the tutorial 47 patcher.
Anybody else have the same problem or can comment on this matter?
I know that, with the second script I uploaded, the circles are being created,
they're just not being placed where the mouse cursor is.
As if there's a problem with event.args[0] and args[1].