Got rid of need for polylineDistances array.
Tried using uniform arc-distance points for point-on-curve. It blows.
Refactored point-on-curve code into BezierCurve.
Colourful dots tracing bézier curves.