This is a cubic bézier curve, so it uses four points. Drag the points around and see what happens. All the code by me ( @1nteger_ )