vectorcraft/crates
japbcoelho 4268b8edd5 Trace: colour mode keeps close dark tones apart
The colour histogram used the top 5 bits of each channel, so tones less
than 8 values apart always shared a bin and could never get their own
palette entry, however many colours were asked for. A dark, low-contrast
photo (a book-cover texture with RGB 33..66) traced to 5 colours when 12
were requested, and eight grey stripes 32..39 traced to one:

  vectorcraft-cli run --in stripes-32-39.png --cmd select.all \
    --cmd imageTrace.makeAndExpand \
    --params '{"params":{"mode":"color","colors":8,"noise":0,"method":"overlapping"}}'
  -> {"anchors":4,"colors":1,"id":4,"paths":1}

The histogram keeps its 32x32x32 bins, now fitted to each channel's range
among the opaque pixels: a channel spanning at most 32 values keeps every
value apart, a full-range channel keeps the old 5-bit bins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:59:50 +07:00
..
affinity Clippy 1.99: as_chunks in the Affinity raster tests 2026-10-09 23:15:36 +07:00
brush #1172: share an object's appearance with its undo history until it changes 2026-10-11 23:27:21 +07:00
cad #1172: share an object's appearance with its undo history until it changes 2026-10-11 23:27:21 +07:00
color Review: palette writing keeps the swatches PaletteFormat::holds names; ROADMAP (#1110) 2026-10-11 11:33:07 +07:00
doc Graphs keep their label formatting when drawn again 2026-10-12 06:42:50 +07:00
effects #1172: share an object's appearance with its undo history until it changes 2026-10-11 23:27:21 +07:00
engine Color params: one scale per CMYK colour, not per component 2026-10-12 06:59:49 +07:00
eps #1172: share an object's appearance with its undo history until it changes 2026-10-11 23:27:21 +07:00
format Graph designs and marker designs: Object › Graph › Design… and Marker… 2026-10-12 06:42:49 +07:00
geom #1111: a blend's spine bends into a curve 2026-10-11 17:49:41 +07:00
mcp MCP: lost replies report uncertainty instead of replaying edits 2026-10-12 06:59:49 +07:00
metafile Part of #637: the editing data's structure read whole, colours, gradients, transparency, names, images and artboards included 2026-10-09 16:02:36 +07:00
pathops Shape Builder: a line's loose end past a crossing no longer runs out and back in most cases 2026-10-12 00:16:22 +07:00
pdf TEST.1: correct font shaping and embedding oracles 2026-10-12 06:59:49 +07:00
plugins Review: a whole number past i64::MAX is past any maximum; ROADMAP (#1091) 2026-10-11 12:24:46 +07:00
render #1172: share an object's appearance with its undo history until it changes 2026-10-11 23:27:21 +07:00
svg SVG.1: preserve data attributes and validate export ranges 2026-10-12 06:59:49 +07:00
testkit variables: fix binding lifetime, dataset editing and the missing UI to define 2026-10-10 23:34:21 +07:00
text TEST.1: correct font shaping and embedding oracles 2026-10-12 06:59:49 +07:00
three-d M9: add live Revolve with artboard rotation and lighting controls 2026-10-10 23:44:46 +07:00
tools PEN.1: fix endpoint picking and commit handle previews 2026-10-12 06:59:49 +07:00
trace Trace: colour mode keeps close dark tones apart 2026-10-12 06:59:50 +07:00
ui-egui Align: keep the tests and panel docs #1073's branch dropped, and translate the new button 2026-10-12 06:59:49 +07:00