XML Feeds

.

[javascript-dev] js disobeys law of cause and effect

Joshua Kit Clayton jkc at musork.com
Tue Nov 6 14:53:59 MST 2007


On Nov 6, 2007, at 1:44 PM, evan.raskob [lists] wrote:

> I thought I remembered some threads about not using jit.lcd for  
> scripting, because it doesn't work properly.
>
> About sending bangs - yes, I noticed that, which is why I am  
> sending out many bangs to update the pen location after each  
> "moveto" command.
>
> Even with that, try hooking up a print to the output of the js  
> object and see what kind of funky order the commands are printed  
> out in.

This is expected with @mode defer, no? It pushes it to the end of the  
queue. I don't see anything other than what you'd expect with this  
sort of feedback loop and deferred messages. I would recommend you  
segment this so that it doesn't need feedback in this way--e.g. use  
two js files one to make the bang, getpenloc calls synchronously as  
necessary and pass in to a second js which does the drawing. Or  
something along these lines which avoids a feedback loop.

Personally, I'd just use the JS Sketch object with fsaa disabled, but  
I guess you have a reason for doing it this way.

-Joshua


More information about the javascript-dev mailing list