mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 10:46:46 +00:00
With #8144, an edge pixel between black and white is read as a blend of black and white when paths of up to 5 steps reach past a gray between them both ways. On edges blurred by 0.6 pixel, the outer pixels of a gray band 3 or 4 pixels wide along black also met that rule: their first step outward is white, and the path toward black crosses the band's gray. A 3 px band at that blur kept 16 of its 48 samples gray, against 46 before #8144. When the first step of one path already stands for its color (the edge on that side is sharp), the other path now stops at a pixel of the gray it comes to before getting past it. Bands 2 to 4 pixels wide blurred by 0.6 pixel keep 306 of their 432 samples gray (207 with #8144, 324 before it). Edges blurred by 1 to 3 pixels trace as with #8144, except that a light gray (230) blurred by 1.5 pixels leaves at most 4 slivers of up to 3 pixels beside the disc. The band test now also runs at blurs of 0.6, 1 and 3 pixels, the spoke test at 2 pixels, and the stroke test's ranges are the measured ones. The docs state the distance rule as the code computes it and limit each measured claim to the blur it was measured at.