mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 04:07:12 -06:00
Gradients: Dither in the Gradient panel draws a gradient fill with fine noise that hides banding
Illustrator 30.0's gradient Dither, from the public documentation (https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-gradients/control-dither-in-gradients.html): a Dither checkbox in the Gradient panel; dither converts the gradient into pixels with subtle noise, works with gradient fills only, and follows the Document Raster Effects resolution. - Gradient gains `dither` (serde default false, written only when on, so older files open unchanged and new files keep it). - The renderer draws a dithered linear or radial fill as an image paint: the gradient sampled a cell per device pixel or finer (quarter-octave steps, cached per thread), each channel given seeded triangular noise of up to a level before rounding. Same pixels every run; strokes and undithered fills draw exactly as before. PNG and other raster exports go through it. - SVG and PDF write a dithered fill as an image at the document's raster effects resolution, clipped to the shape (the freeform-gradient path); characters' fills stay vector gradients in SVG, with a warning. - paint.editGradient and paint.setFill take `dither`; strokes refuse it. The Gradient panel's Dither box is dimmed behind the Stroke proxy. - i18n rows in all 24 catalogs; docs: G13, target-app-parity, ui-parity, mcp.md, plugins.md.
This commit is contained in:
committed by
bflatastic
parent
a1d8952bc8
commit
cc1a660a6d
+1
-1
@@ -198,7 +198,7 @@ type and `blob` but without their data, which follows the JSON in a saved file;
|
||||
`paint`, `width` in points, `join` (`"miter"`, `"round"` or `"bevel"`), `cap` (`"butt"`, `"round"` or `"square"`)
|
||||
and `miterLimit`. Paints use the
|
||||
native file format's form: `{"type": "solid", "color", "swatch"?, "tint"?}`, `{"type": "gradient", "gradient":
|
||||
{"kind": "Linear"|"Radial"|"Freeform", "stops": [{offset, color, opacity, midpoint}]}, "geom"?, "angle",
|
||||
{"kind": "Linear"|"Radial"|"Freeform", "stops": [{offset, color, opacity, midpoint}], "dither"?}, "geom"?, "angle",
|
||||
"freeform"?}`, `{"type": "pattern", "pattern", "xf"?}`. Colours are `{"model": "rgb", r, g, b}`, `{"model": "cmyk",
|
||||
c, m, y, k}`, `{"model": "gray", k}` (ink: 0 white, 1 black) or `{"model": "lab", l, a, b}`; components 0–1 except
|
||||
Lab's.
|
||||
|
||||
Reference in New Issue
Block a user