mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
A scatter brush takes a Saturation Jitter amount from 0 to 100 percent (0 by default). Each copy moves the saturation of its solid fills and strokes, type included, by its own amount up to that many points either way, after the colorization and the hue jitter. The amounts come from the stroke's path and the brush name, drawn apart from the hue jitter's, so a stroke draws the same colors on every redraw, after Save and Open, and in export, and turning it on does not change the hue jitter's amounts. A color keeps its hue and brightness and moves in its own model: RGB in the HSB of its values, CMYK over C, M and Y with K kept, Lab by moving its chroma with its lightness and hue angle kept (a and b stay within 127). The saturation stops at none and at full. White, black and grays stay as they are. A brush at 0 saves no saturation_jitter key; a brush without the key reads as 0. - brush.options takes saturation_jitter, and brush.get shows it for every scatter brush. Brush Options shows a Saturation Jitter field (ui.brushOptions field saturationJitter). - Hue and saturation jitter share one per-copy recolor step, which takes a salt and a color adjustment. - Options of Selected Object showed Hue Jitter but dropped a change to it on OK, since a path could not set it for itself. A path now sets its own hue_jitter and saturation_jitter (brush.objectOptions). - The .ai editing data writer does not write the amount, so such a brush is left out of the Brushes panel there and reported. Docs: docs/mcp.md, docs/target-app-parity.md.