mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:51:05 +01:00
Docs: say when a library pattern swatch keeps its color group and takes a numbered name
A swatch that names picks on its own comes in ungrouped. A swatch named after its pattern reuses a document swatch that paints the pattern the same way, and takes a numbered copy of the pattern's name when a swatch or color group already uses it.
This commit is contained in:
1 parent
653cc07c45
commit
f1ff029c18
1 file changed
+9
-3
+9
-3
@@ -5831,9 +5831,15 @@ same extension and bytes as one there, loads as that User Defined library (categ
|
||||
is refused before it is read.
|
||||
From a document, such as a `.ai` or `.eps` swatch library, it reads the colors, tints, gradients and pattern swatches
|
||||
in the document's order and color groups; `swatch.library.add` brings a pattern swatch's pattern, with its tile and
|
||||
art, into the document as a pattern swatch under the library swatch's name and in its color group. A library swatch
|
||||
named after its pattern instead takes the name the pattern comes in under, when the pattern comes in under another name
|
||||
that no library swatch has and the swatch does not keep a free numbered name as described below. A global or spot
|
||||
art, into the document as a pattern swatch under the library swatch's name. The swatch goes into its color group when
|
||||
`names` is left out or when the first entry of `names` that covers the swatch is its group; when that first entry is
|
||||
the swatch's own name, the swatch comes in ungrouped. A library swatch named after its
|
||||
pattern instead takes the name the pattern comes in under, when the pattern comes in under another name that no
|
||||
library swatch has and the swatch does not keep a free numbered name as described below. For such a swatch, when the
|
||||
document already has a swatch under any name that paints that pattern placed the same way, that swatch is used and
|
||||
nothing is added. Otherwise, when a
|
||||
swatch or color group of the document already uses that name, the swatch comes in under a numbered copy of it
|
||||
("Tiles 2 2"). A global or spot
|
||||
color the pattern's art links to keeps the library's color: when the document gives its name another color, it comes
|
||||
in under a numbered name ("Ink 2") and the pattern links to that. That numbered name, and the numbered names of a
|
||||
pattern swatch and of a pattern the art is painted with, skip the names the library gives its other swatches. A swatch
|
||||
|
||||
Reference in new issue
Block a user