The desktop treats a masked layer's mask as the target in Composite when
every colour channel is hidden and no alpha channel is shown; the engine
helper now does too, and ignores a shown filter mask as the desktop does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a pixel layer's or a group's layer mask targeted, or an adjustment
layer with its mask active, both items stayed enabled and made a brush
or pattern from the composite. The reference greys them there.
A shared check, pattern_cmds::layer_mask_targeted, now gates
edit.definePattern and brush.defineFromSelection; Define Brush Preset
passes on the brush command's reason.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a selection, magic_eraser found the region on the whole canvas and
only clipped the erase to the selection. A fill could then reach another
selected part by a path outside the selection, and a click outside it
erased inside it.
With a selection and Contiguous on, the region is now found inside the
selection's bounding rectangle, over selected and unselected pixels
alike. A seed outside the rectangle finds nothing and adds no History
state.
Kept as before (not measured): a selection with partly selected pixels,
and Sample All Layers.
One existing test clicked outside the bounding rectangle of its
selection and expected an erase; its click moved inside the selection.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
With the brush popup's Tolerance control on Pen Pressure, each dab replaces only the
colours within Tolerance x the pen pressure at that dab. Off, the mouse and Stylus Wheel
keep the full Tolerance. Dabs now carry the input pressure they were placed at, and
`paint.colorReplacement` takes `toleranceControl` (off, penPressure, stylusWheel).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tool recolours the full colour composite only. In an RGB document a
press, live stroke or paint.colorReplacement with one colour channel
targeted now gives "Could not use the Color Replacement tool because it
only works in full color modes.", with some but not all channels
"...because the target channels do not cover the composite.": nothing
painted, no History state. All channels still paint; other colour modes
were not measured and keep painting. The check sits in the shared
Color Replacement target refusal, so the canvas alert and the command
error use the same text.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Fit and the end of the path use how far a tile reaches along the path: an upright tile on a vertical path ends 15 px
past its centre for the 40 x 30 probe, not 20.
- Fit stretches the steps only as far as every tile still ends at or before the path's end, so shrinking tiles (Scale
progression below 100 %) no longer reach past it.
- Tiles out of reach of the painted area are skipped (a run at a steady size in one jump) and keep their number and
place, so spacing, progression and mirroring stay as on the whole path: a path starting far off the canvas no longer
spends the tile limit there and paints nothing.
- A path that needs more than the 100,000-tile limit over the area is refused with a message, rather than filled part
of the way and reported as done.
- The per-tile colour drift is worked out once per tile, not per pixel.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The range of dilation steps came from the painted rect, so a small selection dropped enlarged copies that still cover
it (a translucent tile's centre pixel changed), and type 6 numbered its copies from the largest step, so the same copy
drifted to another colour when the range changed. The range now comes from the canvas (with the area), and dilated
copies take their own step as the number for the colour drift; the drawing order stays as it was.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A long subpath far off the canvas took nearly all the tiles (and swamped the visible line's share of the arc length),
so the visible line got none. The path's pieces are now clipped to the area grown by Max distance and the largest
tile's reach before the tiles are spread over them; without a path nothing changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tool recolours a pixel layer's full colour composite only. A press on a
layer mask, an adjustment layer (its mask or its content), a group's mask, an
alpha channel or the Quick Mask now opens the reference application's alert
with OK, and paint.colorReplacement returns the same text. The target decides
before the hidden, locked and 32-bit checks. Measured in RGB documents; other
modes and the filter mask keep the generic refusal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#18039: OK in a script dialog on a pattern Indexed Color can't take now
shows the same alert with OK as the Fill dialog, instead of a plain
notice; a test covers the script path.
#18396: Symmetry Fill turns about the selection's own centre, also when
the selection reaches past the canvas, not the centre of its clipped
part.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each turn of the spiral now offers only the tiles within reach of the
pixel, found by the law of cosines over the turn's radius band, and the
turns are walked lazily from the outside in. Past the try limit the
topmost tile whose centre lies within half the tile's shorter side,
which covers the pixel however it is turned, stands in, so a covered
pixel is never left transparent.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#18135 gives Quick Mask its own swatch pair, so the Quick Mask grey tests
of #17487 (main) and #18070 now pick their colour after entering Quick
Mask instead of before. #18039 refuses every blend mode but Threshold and
Dissolve and the Content-Aware fill in Indexed Color, so #18035's "other
contents and blend modes stay inside the table" test checks that those
fills are refused and leave the pixels unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A selection that reaches past the canvas kept the centre of its visible
part; it now turns about the centre of the whole selection, while the fill
stays clipped to the canvas. The centre is summed in f64 so a far-off
selection pixel cannot overflow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>