toQuadratics comparison
The same cubic, replaced by quadratics by each of toQuadratics's
methods (the library's own code), all at the same tolerance. Drag the round
handles. Gray band: the cubic, drawn as wide as twice the tolerance, so the
quadratics should stay inside it. The quadratics alternate in color and join at
the dots. The marker shows where they are furthest from the cubic, measured both
ways by dense sampling.
kurbo (to_quads)
fonttools (cu2qu)
colomitchi-half
colomitchi-adaptive
colomitchi-symmetric
kurbo: equal steps in t, each piece the mid-point quadratic.
fonttools: one smooth (G1) quadratic spline; the joins don't
kink, at the cost of more pieces.
colomitchi-half: halving until each piece's mid-point quadratic
is within the tolerance.
colomitchi-adaptive and colomitchi-symmetric:
splitting where the error just reaches the tolerance, from the start, or from
both ends at once.