I would like to ask something and i hope this is the right place to do
Is there a way to draw a line in the way design programs do ?
touch down on a point in canvas to get the start point
and while dragging along canvas only one line will be visible from start point to current point
and finalize the line by touch up.
I touch down on X0, Y0
i drag to X1, Y1
I continue drag to X2, Y2 (X0,Y0 - X1, Y1 is erased, X0,Y0 - X2, Y2 is visible)
I continue drag to X3, Y3 (X0,Y0 - X2, Y2 is erased, X0,Y0 - X3, Y3 is visible)
I touch up and the line , X0,Y0 - X3, Y3 becomes red
I hope i was clear.
Thank you all in advance