Illustrating compare() between a Bézier curve and a coordinate vector

You have control over a 10 point red Bézier through the large red pads.

A 9 point blue Bézier will try to follow you.

You can move multiple pads at the same time.

// curve control points
let userAX = ;
let userAY = ;
let followAX = ;
let followAY = ;