Bezier splines
Construct a curve out of segments. For each segment define 4 points: two endpoints and two other points determining the tangents at endpoints:
If we ensure that blue points on two sides of each
read point are on one line, the whole curve is C1,
that is, has a tangent everywhere.