A scan's paper is a tenth darker in one corner than in another. Flat Logo found each tone of it as a colour of its own and traced the bands and the specks between them: on the scanned inputs 470 paths, 21 px from the art on average. Two palette colours are now one when the pixels between them are no fewer than a third of those at the lesser of the two: flat colours leave only their shared edge between them, tones of one colour fill the gap. Whether the image is flat art at all is still asked of the tones as found. Flat Logo on its inputs, all sizes and variants: 3.106 -> 0.090 px off on average, 88.5 -> 0.82 px at most, 69.9 -> 3.9 paths; clean, aliased, blurred and noisy art as before. |
||
|---|---|---|
| .. | ||
| src | ||
| tests/quality | ||
| Cargo.toml | ||