drawing discontinuous lines with jit.gl.sketch

    Oct 13 2010 | 3:14 pm
    hello! 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:
    thank you!! -emmanuel

    • Oct 15 2010 | 12:00 pm
      hi efe!
      at least to solve the window resizing problem you can use this method:
      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! o
    • Oct 16 2010 | 4:10 am
      Hey Carsol: that is exactly what i was searching for, thanks!