Press the flag. Click four times on the screen to set the anchor points for the Bézier curve. The curve will be drawn automatically. Change the value of t to trace the path of the curve.
A more mathematical algorithm than my previous Bézier curve project.