# Bézier curve

A **Bézier curve** (pronounced [bezje]) is a mathematically described curve used in computer graphics and animation. In vector images, they are used to model smooth curves that can be scaled indefinitely.

The curve is defined by a set of control points with a minimum of two. Web related graphics and animations use Cubic Béziers, which are curves with four control points P_{0}, P_{1}, P_{2}, and P_{3}.

To draw the curve, two imaginary lines are drawn, one from P_{0} to P_{1} and the other from P_{1} to P_{2}. The end points of the lines are then steadily moved to the next point. A third imaginary line is drawn with its starting point moving steadily on the first helper line and the end point on the second helper line. On this imaginary line a point is drawn from its starting point moving steadily to its end point. The curve this point describes is the Bézier curve. Here's an animated illustration demonstrating the creation of the curve:

## See also

- Bézier curve on Wikipedia
- Cubic Bézier timing functions in CSS
`keySplines`

SVG attribute