mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 18:54:31 +01:00
Object › Plug-ins › Color Effects › Randomize Fill Colors… gives each
selected filled path and compound path, and each one inside the selected
groups and clipping groups, a fill color of its own, picked at random
from a seed, as one undo step (none when no fill changes).
- addon.color.randomFill {scheme?, swatch?, min?, max?, seed?, ids?}:
"color" picks red, green and blue at random in the document's color
mode, "tint" picks a linked tint of a global or spot swatch, and "gray"
picks a gray, the tints and grays between min and max percent.
- Unfilled paths, clipping paths (compound ones included), hidden and
locked objects and the objects in hidden or locked groups and layers,
type, images, symbol instances, blends and envelopes keep their fills.
A compound path's member given by id colors the compound path, and an
object reached twice is colored once.
- Bad params are refused: an unknown scheme, min or max with "color",
swatch without "tint", a percent outside 0 to 100, min above max, a
missing or process swatch, and a seed that is not a whole number.
- The dialog has Colors, Swatch (the document's global and spot
swatches), Minimum, Maximum and Seed, with Preview; OK is off while the
minimum is above the maximum or tints have no swatch.
Docs: docs/mcp.md, ROADMAP, docs/target-app-parity.md, docs/ui-parity.md.