segments function

Draws straight lines from point to point.