vectorcraft/crates/color/src
dotCooCoo 2b93e8a930 Swatches: swatch.library.save counts only the swatches the file holds
swatch.library.save replied with the number of solid colors and
gradients it was asked to save, including the gradients the format
leaves out. For a new document saved as .ase, count was 50 and the file
held 46 colors. The .gpl and .ase writers keep solid colors only, and
the CSS writer leaves freeform gradients out.

count is now the number of swatches written. The new
PaletteFormat::holds returns whether a file of a format keeps a swatch
with a given paint, and swatch.library.save counts the swatches for
which it returns true. The reply has the same fields as before.

Tests: after a freeform gradient is added to a new document's swatches,
the test checks that count has these values: 51 for .vcswatches, 46 for
.gpl and .ase, and 50 for CSS. Each file holds that many swatches.

Docs: docs/mcp.md.
2026-10-11 11:33:07 +07:00
..
cms Colour: ICC CMYK converts straight into the RGB profile, with black-point compensation 2026-10-09 17:11:34 +13:00
blend.rs M3.90: blend modes and opacity composite inks in CMYK documents 2026-10-05 04:30:06 +07:00
freeform.rs M4.98: freeform gradients export to SVG as images clipped to their shapes 2026-10-05 13:25:16 +07:00
gradient.rs #1007: Reverse Gradient mirrors off-centre midpoints 2026-10-11 03:51:31 +07:00
harmony.rs M14.4: tests main gained follow the no-panic lint rules 2026-10-05 06:40:34 +07:00
lib.rs M14.4: tests main gained follow the no-panic lint rules 2026-10-05 06:40:34 +07:00
libraries.rs M3.85: spot colours defined in Lab, with Spot Colors options for Lab values or CMYK equivalents 2026-10-05 03:46:57 +07:00
palette_io.rs Swatches: swatch.library.save counts only the swatches the file holds 2026-10-11 11:33:07 +07:00
recolor.rs M3.78: Recolor Artwork with colour reduction, methods, presets and Limit to Library 2026-10-05 04:20:27 +07:00
swatch.rs Robustness: VectorCraft never crashes — no panics in shipped code 2026-10-05 06:28:59 +07:00