Quadratic Bézier Curve: Calculate Points
I'd like to calculate a point on a quadratic curve. To use it with the canvas element of HTML5. When I use the quadraticCurveTo() function in JavaScript, I have a source point, a target point and a control point. How can I calculate a point on the created quadratic curve at let's say t=0.5 with "only" knowing this three points? xan Use the quadratic Bézier formula, found, for instance, on the Wikipedia page for Bézier Curves : In pseudo-code, that's t = 0.5; // given example value x = (1 - t) * (1 - t) * p[0].x + 2 * (1 - t) * t * p[1].x + t * t * p[2].x; y = (1 - t) * (1 - t) * p[0].y + 2 *