MGraphics - moving circle

deligut's icon

I have some questions regarding the attached patch:
-why is the circle at the beginning not in the center?
-why is the screen not empty when you open the patch?
-why does the patch crash after it has been running for a while?

Any help very much appreciated.

3803.Example79Version2.js
js
ak's icon

1) x,y describe the position of upper left corner of rectangle with inscribed ellipse.
2) because jsui paints its contents (also do so on resize, lock/unlock patcher). As name suggests it's for UI, and there this is desirable behavior. I used to do some animation in jsui but moved to jitter (due to - ironically - jitter of jsui)
3) i think it's a yet another bug... inevitably ends with crash here [max 6.0.4 on lion]. log attached.

3804.crashlog20120501mgraphicsjsui.txt
txt
deligut's icon

Andrzej,
thanks a lot for your help.
What do you do then? Create image matrices in a js object using Javascript and GLSketch and then send this to a pwindow? Is there a library I have to initialise to use OpenGL?

deligut's icon

I changed the patch hoping that the banging is the problem but the patch crashes even without the banging. Any idea why this is?

3825.Example79Version4.js
js
deligut's icon

This is the gl.sketch version. That does not seem to crash. How do I bring the latest circle to the front (rather than it being in the back)?

3831.rectangle.js
js