drawing discontinuous lines with jit.gl.sketch

Oct 13, 2010 at 3:14pm

drawing discontinuous lines with jit.gl.sketch

I am trying to write a patch that can draw discontinuous lines: when the mouse button is not pressed the position of the first x and y coordinates is modified in order to drew new lines. However, when i try to move the position there is always an annoying line appearing before i can start drawing the new set of lines, any ideas?, what am i missing?

second question: how can i know dynamically the size of my window so i can rescale the position of the lines when i go full screen?

here the patch:

– Pasted Max Patch, click to expand. –

thank you!!

Oct 15, 2010 at 12:00pm

hi efe!

at least to solve the window resizing problem you can use this method:

– Pasted Max Patch, click to expand. –

the nature of lineto isnt breaking lines, but
sure theres a solution to keep on this with line and move but
for line painting you can use sketch strokes.. take a look on this:


good luck!

Oct 16, 2010 at 4:10am

Hey Carsol:
that is exactly what i was searching for, thanks!


You must be logged in to reply to this topic.