mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Strokes narrower than four raster tolerances had their outline fitted and flattened at a tolerance as fine as 1/16 of the raster tolerance, so each side of a thin curve took about four times the lines a wider stroke takes, and every frame drew them all. A plain thin stroke (no dashes, no width profile) along a path with curves is now drawn as lines first, within a sixth of its width of the curve, and each side of each line is offset by exactly half the width. The band keeps its width, the outline takes one line per side for each line of the path. Where two lines meet at a small angle both sides go to where their offsets cross; sharper corners get the stroke's join, open ends its caps, and a closed path keeps its hole. Dashed and profiled thin strokes, and thin strokes along straight paths, are unchanged. On 200 cubic curves about 100 device pixels across, a 0.5 px stroke's outline goes from 15,559 lines to 7,514 (4,288 before #3273).