mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 13:33:19 +00:00
Window › Swatch Libraries › Gradients gains Organic Fades, a gradient library of fifteen fades (ten linear, five radial). Each runs through three to five unevenly spaced stops with off-center midpoints, mixes with the Perceptual method, and thins out to transparent at the end of a linear fade or at the edge of a radial one. The colors are computed from VectorCraft's own OKLCH anchors. The library also lists in the Swatches panel's library menu, in swatch.library.list (category "gradients") and in the Gradient panel's Presets. swatch.library.add keeps each fade's stops, opacities, midpoints and method in RGB and CMYK documents. The other built-in libraries are unchanged: their gradients still mix with Classic and keep centered midpoints, and a test checks it. - Gradient previews in the Swatch Libraries panel, the Gradient panel's Presets menu, swatch tiles and the toolbar drew every stop opaque. Each chip vertex now takes the sampled opacity as its alpha (freeform points too), and a chip with any translucent vertex draws a white and gray checkerboard under the gradient. Opaque gradients draw as before. - When the preferences are applied, a saved gradient preset whose name matches a built-in preset, or an earlier saved preset, in any case, is renamed to the first free "<name> N" (N from 2), so a saved preset named like a new built-in fade stays listed and can be applied and deleted.