mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
- A fill or stroke linked to a global process swatch reads as a SpotColor without a spot. That color does not name its swatch, so assigning it to any fill or stroke throws an error that says it is not available yet, and the path keeps its paint. - A spot's color, set through Spot.color or Swatch.color, keeps an RGBColor in a CMYK document as RGB, as it keeps a CMYKColor in an RGB document, and assigning the color it has again records no undo step. A process swatch's Swatch.color still stores an RGBColor in a CMYK document as CMYK, and assigning that RGBColor again records no step. - docs/mcp.md and the module notes state that a spot keeping a color of the other color space is VectorCraft's own rule: the Spot page (https://ai-scripting.docsforadobe.dev/jsobjref/Spot/) says a color in another space than the document's gives an error, and spots.add() converts the fill to the document's space as that page asks. They also state VectorCraft's own SpotColor tint defaults: 100 from new SpotColor(), 0 for a color object without a tint. - Tests cover a path painted with Registration through a SpotColor, a SpotColor without a tint, and spot and process swatch colors in a CMYK document. Docs: docs/mcp.md.