Forums > MaxMSP

jit.lcd

April 17, 2012 | 10:22 am

Is it possible to add to the jit.lcd a short of timer so that clears the first drawings added? For example I make 5 shapes and after e.g. 5 mins I want only the last one visible (so 1 get erased by every minute that passes). Or maybe should I look into another visualization aid to do this?

Thanx


April 17, 2012 | 2:56 pm

If no solution comes about for jit.lcd, I know jit.gl.sketch definitely has the ability to delete drawings in order, you send a message like (cmd_delete 1) which would delete the first command/drawing that you did. And although I’m no expert on jit.lcd, I think you can do most stuff in jit.gl.sketch that you can in jit.lcd.

-chris


April 19, 2012 | 10:28 pm

I actually provided some MGraphics code for this in my Javascript patch-a-day (I did this in December, I think). Jump over to the Javascript part of the forum and check there for a drawing example.

[ddg]


April 20, 2012 | 7:05 pm

Since jit.lcd doesn’t support sprites, I think the assumption is that if you want to keep track of the individual drawing commands you’ll do so yourself and then redraw the whole stage. Here’s an example. Unlike what you specified (a drawn object removed every minute), this example removes each drawn object ten seconds after it was drawn, just to make the process more evident.

– Pasted Max Patch, click to expand. –

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