The colour-alpha check compared the read-back opacity with the stops'
alpha read linearly, but Smooth (and every baked gradient) renders the
nearest stop's alpha, and the opacity bake maps Smooth to Classic. It now
compares the read-back opacity with the alpha `bake_interpolation`
renders, so a Smooth gradient with translucent colours falls back to its
render stops. The save test adds Smooth and plain Classic.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stroke shares Fill's Blending rows, so its Normal also read Threshold,
though `edit.stroke` blends Normal by its opacity and never snaps.
`blending_rows` now takes the choice: Fill names it Threshold, Stroke
keeps Normal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without opacity stops of its own, a kept gradient's colour alpha was
written as opacity stops under the kept method; Linear and Perceptual bake
those on the next read (0.25 came back near 0.14). The record now counts
as matching only when the method and Smoothness give that alpha back, so
other gradients are saved as their render stops. The save test covers
Classic, Linear and Perceptual.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lab stops kept with a method other than Classic bake into stops in the
document's RGB, but the conversion skipped the Lab stops and baked the
render stops again unchanged. Kept stops in another model are now
brought into the old mode first, so the render stops are converted and
still match the kept gradient.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Converting the edited fill to the document's mode converted the baked
render stops too, so they no longer matched the record and a save wrote
generated stops without the method and the kept stops. A kept gradient
that is still baked now has its own stops converted and is baked again;
the live preview uses the same conversion.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the split or merged segment of a kept gradient starts halfway; a
segment between the same two stops as before keeps its opacity midpoint.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A saved stop colour carries no alpha, so a kept gradient with translucent
stop colours and no opacity stops was written opaque. The writer now puts
the colour alpha into the opacity stops in that case.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Gradient Overlay given a translucent ramp after import was saved with
that ramp under the kept method, so the next read baked it again into a
different curve. Such a record is now stale and the writer saves the
render stops.
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]>
Far from the origin the blend of a piece's ends loses the near end's digits: a line from (1e16, 0) to (1, 0) sampled
at its length gave (0, 0). The start and the end are now returned as they are.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Session::close and add_document change the active document without a
command, so the swatches stayed on the Quick Mask pair after the Quick
Mask document closed and the next colour set was undone by the sync after
dispatch. Both now sync the pair with the active document.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a layer mask, an alpha channel or Quick Mask the Mode list now greys
Behind, and a stored Behind drags in Normal there instead of sending a
combination `paint.gradient` refuses.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fade builds its Mode row with the same helper as Fill, so in Indexed
Color and Bitmap its first entry read Threshold, though Fade blends Normal
by its opacity. The Threshold name is now asked for by Fill and Stroke
only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#13855 adds midpoints and opacity stops to GradientInterpolation; the
Gradient Overlay defaults test from main destructured the struct with its
old three fields and no longer compiled. Same change as #18392 makes on
top of #13855.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin craft-libs at storytold/craft-libs#4586 (ecf325bb), whose menu level no
longer claims its rows' mnemonic letters while a text field in the menu, Help's
search, has the focus. The branch sits on the commit pinned before (4ed3d95b),
so nothing else in craft-libs moves.
Co-Authored-By: Claude Opus 5.5 <[email protected]>