Creating a Bezier curve
We've just learned that with the quadratic curve we have one control point. Although we can do many things with one control point, we don't really have full control over the curve. So let's take it one step further by adding one more control point. Adding a second control point actually adds the relationship between these two points as well making it three control factors. If we include the actual anchor points (we have got two of them), we end up with five points that control the shape of the curve. That does sound complicated; it's because the more control we get the more complicated it is to actually understand how it works. It's really not easy to figure out complicated curves by code alone and as such we actually use other tools to help us figure out the right curves.
To prove the preceding point, we can find a very complex shape and start with that one (don't worry, later on in this recipe, we will practice on a very simple shape to make the concept clear). We...