A copy whose saturation jitter would move a color past full saturation
(or past the largest Lab a and b) left the color as it was but still
dropped its swatch link, so a spot or global color lost its link in
those copies. Such a copy now keeps the color and its link, as brightness
jitter does for a color already at black or at full brightness.
A scatter brush takes a Brightness Jitter amount from 0 to 100 percent (0
by default). Each copy moves the brightness 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 and saturation jitter. The
amounts come from the stroke's path and the brush name, drawn apart from
the hue and saturation 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 their amounts.
A color keeps its hue and saturation and moves in its own model: RGB in
the HSB of its values, Gray by its ink, Lab by its lightness with a and b
kept, and CMYK by its K over the brightness its C, M and Y leave. A CMYK
color that goes brighter than its C, M and Y show with no K loses its K
and takes less C, M and Y. The brightness stops at black and at full.
White, black and grays move too. A brush at 0 saves no brightness_jitter
key; a brush without the key reads as 0.
- brush.options takes brightness_jitter, and brush.get shows it for every
scatter brush. Brush Options shows a Brightness Jitter field
(ui.brushOptions field brightnessJitter).
- Options of Selected Object sets a path's own brightness_jitter
(brush.objectOptions).
- The brightness goes through the per-copy recolor step hue and
saturation jitter use, with its own salt.
- 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.
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.
Eight tests in effects, brush, tools and trace bounded their run time
with Instant::elapsed. Each now counts the work the bounded code does
and asserts that count instead:
- effects: the subpaths Offset Path offsets after Transform copies
move behind it (1 for the rectangle, 5 for five leaves)
- brush: the calls a misbehaving bend map gets, at most what the
fitting depth and the chord count allow
- tools: the points Liquify's simplify measures (five per anchor) and
the anchors it moves (one each), and the objects the eyedropper's
hit tests may visit (within the work limit)
- trace: the named logo colors compared with those kept (ten per
color), the lookups that drop repeated swatches (one each) and the
swatch colors compared with the picture's colors (each distinct
swatch once per color)
Each count fails when the bounded step is removed or made to repeat.
A Scatter brush spaced its copies by the art's geometric width, so at
100% spacing copies of stroked art overlapped by the stroke width. The
spacing now uses the art's width with its strokes (its visual bounds),
so stroked copies touch at 100%. Art without strokes is spaced as
before.
Test: scatter_spaces_stroked_art_by_its_stroked_width.
A side tile over a closed path's start was drawn at one scale when the
scale at its ends, its middle and each pen sample within it was the
same, even where the scale recorded at the end of the stroke differed
from the one at its start. Such a tile now also needs the same scale at
the stroke's start and end before it is drawn at one scale.
A start or end tile no longer takes the length the scale gives at its
first length's middle when that length matches. The search over the
lengths up to the run now runs whenever the scale follows the pen, so a
tile that fits at a shorter length is placed there.
The check for whether a pattern tile's scale is the same along all of
it looked at every recorded pen sample on the track for each tile, so a
long stroke with many samples and small tiles took work in proportion
to the tiles times the samples. The samples are kept in order, and each
tile looks up only the ones within its span.
A start or end tile whose scale follows the pen was left out when it did
not fit at the length the scale at the middle of the whole run gives,
even where a shorter length fits because the scale rises and falls along
the stroke. The length is now the shortest one up to the run's length
that is as long as the scale at its own middle: evenly spaced lengths
and the lengths whose middle falls on a recorded pen sample are tried in
order, and the range where the tile starts to fit is halved.
On a closed path, a point before the path's start now takes the scale
recorded where Track::frame draws it, near the end of the stroke, as a
point past the end already did. A tile that Approximate Path starts
before the start took the scale at the start before.
A pattern brush's scale can now follow Pressure, Tilt, Bearing, Rotation or
Stylus Wheel, with a second scale beside the first, as an Art brush's Width
does. Pattern Brush Options and Options of Selected Object show the mode menu
and the second scale on the Scale row, and brush.new, brush.options and
brush.objectOptions take `scale_mode` and `scale_max`.
Each side, start and end tile is as tall as the scale at each point of the
stroke and as long as the scale at its middle; a corner tile takes the scale
at its corner. Stretch to Fit, Add Space to Fit and Approximate Path fit the
tiles of each run as they are measured where they land. A stroke without the
input draws at the scale half way between the two. A brush with a fixed scale
draws as before, and brushes without the new fields save without them.
Options of Selected Object keeps each path's own second scale when only the
scale or the mode changes, for pattern scales and art widths.
Docs: docs/mcp.md, docs/target-app-parity.md, docs/hardware-parity.md.
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scatter brush takes a Hue Jitter amount from 0 to 180 degrees (0 by
default). Each copy turns the hue of its solid fills and strokes, type
included, by its own amount up to that far either way, after the
colorization. The amounts come from the stroke's path and the brush
name, so a stroke draws the same colors on every redraw, after Save and
Open, and in export. Copies keep their places, sizes and rotations.
A color turns in its own model (RGB in the HSB of its values, CMYK over
C, M and Y with K kept, Lab by turning a and b). White, black and grays
stay as they are, and a symbol instance in the art turns only its stain.
A brush at 0 draws its copies in the colors the colorization gives them
and saves no hue_jitter key; a brush without the key reads as 0.
- brush.options takes hue_jitter, and brush.get shows it for every
scatter brush. Brush Options shows a Hue Jitter field (ui.brushOptions
field hueJitter) with rows in every catalog.
- The .ai editing data writer does not write the amount, so a jittered
brush is left out of the Brushes panel there and reported, as other
brushes that would open with other settings are.
Docs: docs/mcp.md, docs/target-app-parity.md.
Brush art does not follow a stroke's width profile, so picking a profile
for a brushed stroke changed nothing on the canvas.
- While every stroke the Profile list edits draws with a brush, the list
in the Stroke panel, the Properties panel and the Control bar is
dimmed and says why when hovered. It opens no list while those strokes
are uniform, and offers only Uniform, which removes the profiles, while
one has a profile. The Flip Along and Flip Across buttons beside it
are off. The strokes are the ones stroke.set edits: the
active Appearance stroke row, a selected group's or compound shape's
own stroke, or the objects' top strokes. Images and symbol instances
do not count. A selection where one stroke has no brush keeps the full
list.
- The Width tool adds, edits and deletes no width points on a brushed
stroke; a press or double-click on one, or Delete with its width
points selected, shows the same reason in the status bar. Without
Shift, the press deselects the width points of other strokes. A
plain stroke under a
selected brushed one stays reachable, and width points selected
before their stroke took a brush show no handles.
- The reason has a row in every complete catalog.
An Art brushed path whose brush colors its art with Tints, its stroke a
color linked to a swatch (a spot color, often, in garment art), kept its
drawn look: Tints recolored the art in process colors, so the swatch's
ink would have been lost (the reason 0c570dee8, #5967, kept such a
stroke's drawn look).
Tints of a stroke color linked to a swatch are now tints of that swatch,
linked to it (`vectorcraft_brush::colorize`, which Scatter and Pattern
brushes in Tints use too): each piece is the swatch at the stroke's tint
times how dark the art is there (its darkest parts the stroke's own tint,
white none of it), and shows the same color as before, except for a Lab
swatch, whose tints now go toward L 100 as swatch tints do rather than
toward RGB white. With the ink kept, the reader no longer refuses such a
brush.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A calligraphic path's `modes: null` (modes that follow its values) stays
when another value changes, instead of falling back to the brush's modes.
- An art `width` without a `width_max` keeps the largest width of each path
whose width follows the pen, so editing Width no longer moves the other end.
- OK changes nothing when another document has become the active one since
the dialog opened, as Delete Brush does.
With several brushed paths selected, editing one end of a range in the
dialog sent the whole range, so every path took the first path's other
end. The dialog now sends only the items and colorization fields that
changed, and brush.objectOptions reads a null item of an array as each
path's own item, else the brush's. A null mode keeps the mode the path
has with its other values, and modes that change nothing are not stored.
The Brushes panel menu gains Options of Selected Object…. It opens the
brush type's options dialog for the selected brushed paths, without the
Name row, and OK stores the changed values on those paths' strokes only.
The brush and its other strokes keep their settings.
- brush.objectOptions {ids?, params?, reset?} sets the settings, clears
them with reset, and returns them when given neither. It refuses
params with reset, a selection with no brushed path, brushes of
different types, a bristle brush, a field the type does not take and
a value of the wrong kind. One undo step, none when nothing changes.
- The stroke saves the settings as brush_options in the native file, and
the brush renderer, the expansion of pattern tiles whose brushes vary
at random and color conversion of Hue Shift keys read them.
- Applying another brush, removing the brush or a brush change carried
by Global Edit clears them; renaming the brush keeps them.
- Docs: docs/mcp.md, docs/ui-parity.md; i18n rows for the new strings.
A native save now sets the stored brushes' art on the document while it
tells linked images from embedded ones and while it converts placed
documents for older versions, then writes the changed brushes back.
- A linked image shown only in a brush's art is saved as its preview, or
with Include Linked Files as its file's bytes; an image key that the
layers or a brush's art shows embedded keeps its full bytes.
- Saving for an older version replaces placed documents in a brush's art
with groups of their art and its resources, before a precision rounds
it, and the precision preview and PDF use the same conversion.
- Data Recovery copies count the images in brush art the same way.
Docs: docs/target-app-parity.md, docs/mcp.md.
Linked images and placed documents in the art of the stored brushes (a
scatter or art brush's art, a pattern brush's tiles) are listed in the
Links panel after the other stored art, one row per linked or placed
object in each brush tile, with the brush as owner
(`{kind: brush, name, index, tile?}`). Check Links, the missing and
modified files reported on open, the link watch, Find in Folder, Relink
(including Relink All Instances), Update, Embed, Placement Options, Link
Info and Go To act on them, and their tooltip names the brush.
- vectorcraft-doc: `Document::mounted_art` holds art kept outside the
document's trees while a command looks it up by id; the stored-art
lookups, link visitors and `art_roots` include it, and
`number_mounted_art` gives its objects ids of their own.
- vectorcraft-brush: `stored_art::StoredArt` mounts the art of the
brushes that hold images or placed documents and writes back only the
entries whose art changed. Entries that do not read as a brush are left
as stored. `brush::store` keeps ids of their own in that art, so a row
keeps its id between commands.
- vectorcraft-engine: the links commands, opening a document, saving a
placed document's source, output of linked files and placed documents,
color masks after Update or Relink, and Package relinking go through
the mounted art.
Brush art rows follow the general Links rule as VectorCraft's own
application of it.
An Art brush set to Scale Proportionately drew its art at the same size
on every stroke weight: the art was scaled across only by how much the
path stretched it along and by the brush's Width. Stretch to Fit Stroke
Length and Stretch Between Guides already multiply by the stroke weight.
Proportional art now does too, so a 3 pt stroke draws it three times as
wide as a 1 pt stroke, still as long as the path. The same applies to
each run with Overlap on and to a Width that follows the pen.
Existing Scale Proportionately art brush strokes at weights other than
1 pt draw scaled by the stroke weight. Strokes at 1 pt draw as before.
A symbol instance colored with the Symbol Stainer lost its stain in
export whenever the canvas's stained art was not used:
- An instance with geometry effects was reshaped for export from the
symbol's art with only its dynamic changes, so SVG, PDF, EPS, .ai,
DXF, EMF/WMF and HPGL wrote the unstained colors. A color adjustment
on an instance recolored the unstained art the same way.
- PDF, EPS, legacy .ai, DXF and EMF/WMF wrote an instance without
effects from the unstained art.
tint_node, stain and instance_art now live in
vectorcraft_doc::symbol_overrides, which both the effects and the
exporters can use; vectorcraft_brush re-exports them. Baking, color
adjustments and the writers above now use instance_art: dynamic changes
first, then the stain.
Art and pattern brushes bent their art along the chords of the flattened
path, with the tangent blended linearly between vertices, and scatter
brushes placed and turned their copies on the same chords. On a smooth
curve the bent art's edges followed the chords, and the curve fitted to
the result turned by up to a few degrees at its smooth anchors.
- On a chord that comes from flattening a curve, the frame now follows
the cubic through both vertices with their tangents, so position and
tangent meet at every vertex. A vertex tangent between two such chords
is the tangent of the circle through the vertex and its neighbors, and
it stays within a few times the flattening tolerance of each chord, so
the frame stays near the curve next to a long chord. A curved chord
whose end tangents turn further than that keeps to the chord.
- Art on a line of the path stays on the line, and a line keeps its own
direction where it meets a curve.
- A calligraphic nib that follows the pen samples between vertices on
the same frame, so its outline keeps its distance from the curve.
A document or brush library file could hold two brushes of one name.
Renaming the first in Brush Options moved every stroke of that name and
left the second brush unreachable, deleting by name removed both, and
the Brushes panel could not select the second row.
Reading a stored brush library now keeps the first brush of a name as
stored and numbers each later one with the first "Name 2", "Name 3" and
so on that the file does not already have. Strokes name their brush,
and a name always found the first brush, so every stroke keeps drawing
the brush it drew before. The rule applies to opened documents and to
brush library files; brushes added to a document that already has the
name keep today's numbering.
Docs: docs/mcp.md, docs/target-app-parity.md.
Calligraphic and Scatter Brush Options offer Stylus Wheel for Size, and
Art Brush Options offer it for Width. The Paintbrush records where the
pen's finger wheel is set along each stroke (`StrokeLayer::wheel`, 0..1),
and the stroke keeps it through saving, continuing, reversing and blends.
A value on Stylus Wheel goes from its low end at one end of the wheel's
travel to its high end at the other; a stroke without a wheel draws the
value half way.
- Input: XInput2's `Abs Wheel` valuator under X11 and XWayland, and
AppKit's `tangentialPressure` on macOS. Windows pointer messages have
no field for the wheel.
- Commands: `path.freehand` and `brush.freehand` points take the wheel
seventh or as `wheel`, and `pointer_gesture` events take `wheel`;
values are clamped to 0..1 and non-numbers are refused.
- `.ai` brush definitions read and write variation code 3 as Stylus
Wheel instead of reading it as Random, or as Fixed when the value has
no variation.
- `appearance_heap_bytes` counts a stroke's tilt, bearing, rotation and
wheel recordings as well as its pressure.
Docs: docs/mcp.md, docs/target-app-parity.md, docs/file-format-parity.md.
The Width menu now offers Tilt, Bearing and Rotation beside Fixed and
Pressure, each with the second width. Tilt goes from Width with the pen
lying flat to the second width upright; Bearing and Rotation go from
Width at -180 degrees to the second width at 180 degrees, as Scatter
Brush Options' modes do. A stroke drawn without that input is half way
between the two widths. brush.options takes width_mode tilt, bearing
or rotation.
A corner tile was turned so that its x axis followed the mean of the
directions the path arrives and leaves in. A tile drawn as a right-angle
corner then came out turned 45° at every corner, so a rectangle drew its
corners as diagonal chevrons.
Outer and inner corner art are now both read as the corner that joins a
side tile on its right to one below it, as in the help's steps for
making corner tiles. Each corner tile is turned so that those two arms
meet the sides: on a rectangle the tile is square to the side tiles and
turns 90° from one corner to the next, and at other angles it is turned
halfway between the two sides. The arms follow Flip Along and Flip
Across, and a corner that takes the other kind's art turns it the same
way. Which art each corner takes is unchanged.
The PatternBrush field docs, the brush.options params text, docs/mcp.md
and the progress doc describe how corner art is drawn.
A path with an Art brush comes in as the path, with the brush on its
stroke at its weight, instead of as its drawn look, when the brush
stretches art of solid-filled paths along the path, unflipped, at 100% in
Tints. The art runs on the side of the path the file draws it.
The drawn look stays for other colorizations and widths; Proportional,
between-guides and flipped brushes; type; a path with settings of its own,
a variable width, effects, a swatch stroke or an entry that isn't read;
and art with strokes, gradients, patterns, masks or effects, or no length.
A brushed stroke, Calligraphic ones too, takes the brush the Brushes panel
keeps under its name, and an image with a brush keeps its drawn look.
In every document, Tints and Tints and Shades take art in black ink alone
by its ink amount, and a process or gray stroke color's tints and shades
stay in that color's model.
Place and Expand bring the brushes the art uses, renaming on conflict.
Part of #637.
A symbol instance whose fill has an opacity of 0 no longer counts as
stained. Expand Appearance and the other places that build an
instance's art used to rebuild every solid paint as an unlinked color
even though the tint changed nothing, so the art lost its global and
spot swatch links.
Follow-up to #5293. draws_brushed rejected masks, symbol instances and pattern paints whose art names a brush the library doesn't have, though such a stroke draws plain. It now counts only brush names that resolve.