Adds line color based on distance