calculateSmoothLinePoints
smooth drawing roughly works