Forums > Javascript

Possible to dynamically make gridshapes?

January 23, 2013 | 11:23 am

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:
http://cycling74.com/forums/topic.php?id=476
http://cycling74.com/forums/topic.php?id=36368
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!

Attachments:
  1. callback.zip

January 23, 2013 | 2:55 pm

Just wanted to add, on my system, tutorial 47 acts strangely.
When the mouse is idle, the sphere/torus moves back to the centre position.
I’m pretty sure it’s not supposed to do this.
Anyone confirm if this is a bug? (else, a quirk of my system) …

Attachments:
  1. callback.js

January 23, 2013 | 4:16 pm

I’m also interested in making a similar patch, and I’ve been having the same problem with the tutorial 47 patcher.


January 26, 2013 | 3:59 am

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].


Viewing 4 posts - 1 through 4 (of 4 total)