Im new to Jitter. Read sa much from the forum as possible, but I could use a little advise on this one.
I am making a drawing patch for an installation. Im using stroke in jit.gl.sktech, modified from the forum.
But the new lines that are drawn are below the old lines. I tried to solve this with layers, but that doesn't seem to work within one jit.gl.sketch object (sending multiple stroke command with different layer numbers does nothing).
Turns out the layer only work if I use seperate sketch objects. But since I want to use the layers as an undo system (deleting the layer), it's not so handy to have X number of sketch objects for each layer.
Generating objects of the fly is also something I dont know how to do so...
What would be the best approach for this?
here is my patch I simplified a bit for this example, sorry if it is a bit messy. Still a beginner :)