posted 9 years ago
There are many ways of doing this, probably the easiest and certainly the least elegant is to just set the start coordinates of each line to the appropriate value ie:
A better way would to have an array of single X,Y co-ordinates ie
Then iterate over the array the array length - 1 times using the current index as the start X, Y coordinate and the current index + 1 as the end X, Y coordinate.