mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
Color and Grayscale traces smoothed a gray photo before choosing its colors, but a tinted photo with the same tones skipped smoothing: the 0.065 error rule applied only to pictures whose channels stay within 8 levels of each other. A picture whose opaque pixels lie, 19 in 20, within 6 levels of one tone curve now takes the same rule. The curve runs through the median color of each 8-level stretch along the colors' main direction, and a pixel on it must also lie within 6 levels of the plane the colors spread along most, so art in several unrelated colors is not counted. The sixteen-versus-eight exception still keeps clean flat art on the flat-art route.