Drawing multiple lines...

I am totally a newbie fooling around with the line drawing demo. I wanted to create a little script that would let me pull out lines from different sets of vanishing points. I saw that I could use the currentTouch.x and .y to drag one end of the line wherever I wanted, while leaving the other end’s x and y be defined within a parameter…but how do I draw another line after releasing the touch?

There are lot’s of different approaches. The easiest is probably to use touch.state == BEGAN or touch.state == MOVING test to draw the line when you are moving your finger around and the touch.state == ENDED when you want to lock it in and move to the next line. You will need to keep a table of your line co-ordinates so you can redraw them every time draw() is called. Post your code here if you like so folks can comment.