mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
A curve drawn as lines took its line ends from the curve's bending alone. Where a curve runs out and back twice along almost one line, its two turns hold almost no bending, so a thin stroke drew it with one step in two halves: each half held a whole turn, the two halves' gaps canceled, and the band ran straight from start to end without either turn. A cubic from (0, 0) out to x = 28.87 and back to x = -28.87 drew only around x = 0. Each step is now checked against its curve: where the curve lies more than twice the chord allowance from the step's line, to either side or past its ends, the step count doubles, up to the curve's equal steps. Wide strokes draw their long curves the same way and get the same check.