Game Development Reference
In-Depth Information
stroke="#c00" />
</svg>
While executing the preceding code as shown in the following screenshot, we can
see the relationship between control points and the curvature of a line:
This is a cubic Bezier curve where the red lines show where the first and last curve
points connect with the control points.
Drawing curves just the way you want is a rather complex problem to solve by hand.
Different curve functions behave different from each other, so be sure to experiment
with them all until you get a good feel for how they each work. Remember that al-
though it is a good idea to have at least some understanding of how these curves
and other drawing primitives work, it is highly recommended that you always use ap-
propriate software to help you create your drawings. Ideally, we would use our cre-
Search WWH ::




Custom Search