vectorcraft/crates/trace/tests/quality
bflatastic 9ca74ac011 Image Trace: Shapes, and corners whose pixel is mostly outside the shape
Shapes (params `shapes`, a checkbox in the panel; off unless asked for): a filled
outline that is a circle, an ellipse, a rectangle or a regular polygon comes out
as that live shape. A shape is only made when every point of the traced outline
lies within 0.5 px (0.2% of the shape's size, if more) of it; an ellipse whose
radii differ by less than twice that is a circle of its area.

The outline before fitting: a corner's own pixel no longer pulls the two edges
that meet there, and a one-pixel step between two long edges is the corner where
they meet. Sharp corners kept: Default 69% -> 76%, the colour presets 86% -> 91%.

The harness gains plain-shape inputs and "shapes %".
2026-10-13 10:25:05 +07:00
..
inputs.rs Image Trace: Shapes, and corners whose pixel is mostly outside the shape 2026-10-13 10:25:05 +07:00
main.rs Image Trace: Shapes, and corners whose pixel is mostly outside the shape 2026-10-13 10:25:05 +07:00
measure.rs Image Trace: Shapes, and corners whose pixel is mostly outside the shape 2026-10-13 10:25:05 +07:00
raster.rs Image Trace quality harness: an aliased variant, and every drawing can be written out 2026-10-13 01:45:57 +07:00