XML Feeds

.

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

evan.raskob [lists] lists at lowfrequency.org
Thu Nov 8 14:29:04 MST 2007


Thanks Joshua for your help.  jsui is the way to go.

Best
Evan



On Nov 7, 2007, at 4:46 PM, Joshua Kit Clayton wrote:

>
> On Nov 7, 2007, at 1:48 AM, evan.raskob [lists] wrote:
>
>> The jit.qball was in there because I felt that events were getting  
>> lost between the js and jit.lcd.  Even taking it out, it doesn't  
>> appear to work properly.  I'm still a bit fuzzy as to how events  
>> that trigger events in other objects could happen after the events  
>> that they were supposed to trigger - perhaps there's something  
>> about scheduling that I'm missing here?
>
> Well if you take the defer out, you might re-enter the same JS  
> before the previous function has completed, which also would give  
> you some odd behavior.
>
>> I'm not very optimistic about using 2 js objects to do this - if  
>> the events are coming from jit.lcd and an uneven rate, will  
>> separating js objects make a difference?
>
> You could if you separate the logic of iterating N times (no  
> feedback), querying values to be used by another one, and the  
> actual drawing, but perhaps not worth it. Sorry I don't have time  
> to be more detailed in my suggestion.
>
>> The reason I'm using jit.lcd instead of pure js is because I need  
>> to output to a matrix at some point.  But now that you mention it,  
>> I'd forgotten that I could use jsui for this... I can use  
>> "tonamedmatrix" to copy the contents of the jsui to a matrix, right?
>
> Yes. This is what I'd use. You can use the Sketch.gettextinfo() to  
> get the width and height of the string for your positioning needs.
>
> -Joshua
> _______________________________________________
> javascript-dev mailing list
> javascript-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/javascript-dev



More information about the javascript-dev mailing list