Move the points around to see the curve move. This is a simple Quadratic Bézier Curve. The point on the curve is 50% of the way along the curve (In the algorithm.)
I can thank good old Wikipedia for the formula for the curve. Double Click the Green Flag to reset.