Concept to Vector: seam fills under Flat Color, and scripts can stop generate

Flat Color traces abutting fills, and each fill was drawn on its own, so
a light hairline showed wherever two colors met. The built-in provider
now lays the trace's seam fills under the fills, as Image Trace's
Abutting method with Fills does. Seam strokes are trimmed to half their
width inside the image, so they do not paint past its border, and they
are added only in the anchors and paths that every style's traced paths
leave of the limits, so they never make a later style's trace fail.

conceptVector.generate run from a script now stops when the script is
asked to stop, as imageTrace.make does, and keeps no job.
This commit is contained in:
dotCooCoo committed 2026-12-04 22:30:24 -08:00
1 parent 8aaa7a186f
commit 5fd750057b
4 files changed
+300 -25

No files matched your search

+4 -2
View File
@@ -7007,7 +7007,8 @@ already walks Image Trace. Short agent entry points:
and `grayTones` with Image Trace on this computer; it takes no prompt and makes vector art only. A provider is used
only when it is named: an unknown one is an error, and so is one that takes no image, makes no vector art, or does
not support a non-empty `prompt`, each with that reason; no other provider is used in its place. Results are vector
art, so `output` other than `"vector"` is an error for every provider.
art, so `output` other than `"vector"` is an error for every provider. `flatColor` traces abutting fills and lays
seam fills under them, as Image Trace's Abutting method with Fills does, when they fit within the limits below.
`conceptVector.generate {id?, provider, styles: [style id…], detail?: 0-100, prompt?, output?: "vector"}` makes one
variation of the image (or unexpanded Image Trace object) for each of 1 to 8 different styles and keeps them as a job of
the session; it does not change the document and is not journaled. A source that is locked or hidden, itself or by a
@@ -7017,7 +7018,8 @@ already walks Image Trace. Short agent entry points:
and 1,000,000 anchor points in all. The reply lists each variation's `style`, `label`,
`paths`, `anchors`, `bounds` in the image's pixels and `warnings` (for example that a large image was traced scaled
down to 16 megapixels). `conceptVector.results {job}` returns the job again, and `conceptVector.cancel {job}` drops
its variations. The session keeps the 4 newest jobs until their document closes. A script that ends with an error,
its variations. The session keeps the 4 newest jobs until their document closes. A `conceptVector.generate` in a
script stops when the script is asked to stop, and keeps no job. A script that ends with an error,
like a batch, leaves the jobs as they were: the jobs it made are dropped, and a job it canceled, or whose document it
closed, is kept.
`conceptVector.insert {job, variations: [style id…]}` puts a group of each chosen variation, named after its style and