[javascript-dev] js disobeys law of cause and effect
Joshua Kit Clayton
jkc at musork.com
Wed Nov 7 09:46:37 MST 2007
- Previous message: [javascript-dev] js disobeys law of cause and effect
- Next message: [javascript-dev] js disobeys law of cause and effect
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [javascript-dev] js disobeys law of cause and effect
- Next message: [javascript-dev] js disobeys law of cause and effect
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
