mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
With a gray named 6 to 20 levels off the color its flat areas have, a gray band 3 or 4 pixels wide along black, with edges blurred by 0.6 pixels, traced as black and white: no band pixel came within PURE of the named gray, so the run rule and the sharp-edge halt in across_edge never kept the gray. unmix now takes the colors of each class's flat areas (area_colors). For a class with a flat area PURE or more from its named color, pixels within PURE of one of those colors also count as the class's pixels for the LINE run rule. The sharp-edge halt stops at a pixel near one of those colors, or at a pixel within PURE of the named color whose previous pixel on the path is too, so a strip at the named color 2 or more pixels wide keeps its gray while single edge pixels near the named color do not. The halt is checked before the walk counts a pixel as past the class, since a pixel of the area's color can lie past the named color on the line. On the band test images (gray 230, 200 and 128 named 6 or 12 levels off, 3 and 4 pixel bands beside a flat square of the gray), 0 to 33 band samples of 48 or 64 traced gray before, and 40 to 61 after. Images whose classes have no flat area off their named color trace as before.