2.1 lines: invert distance function

inverting the distance check and indexing the stroke alpha on the distance between 2 points