paint.setFill {opacity} sets a selected Live Paint group's faces and
paint.setStroke {opacity} its edges. paint.proxies now reads fillOpacity
from the faces and strokeOpacity from the edges, so the Color Wheel's
opacity row shows the value the row sets. Before, strokeOpacity could
answer a face's stroke.
paint.setFill and paint.setStroke read a null `ids` or `id` as naming no
object, as the other paint commands do, so while the Type tool has
characters selected the paint goes to those characters and the rest of the
type keeps its paint. Before, a null `id` or `ids` recolored the whole
type object.
While the Live Paint Bucket is the active tool, paint.proxies answers null
for fillOpacity and strokeOpacity, so the Color Wheel's opacity row is
gray: a fill or stroke chosen then goes to the bucket, and an opacity has
nothing to go to. The doc comment of proxy_opacity names paint.setStroke
for the stroke opacity.
main added Show Harmony and Harmony Rule to the Color Wheel settings and
Live Paint routing to paint.setFill and paint.setStroke. The resolution
keeps both: ui.colorWheel takes and returns view, channel, harmony,
harmonyRule, opacity and vision, and the paint params text describes the
Live Paint routing and the opacity param together. The paint.proxies text
and the catalog test's doc comment name paint.setStroke {opacity} for the
stroke opacity. Indonesian, now a complete-message language, has rows for
the opacity errors.
Swap Fill and Stroke on a whole Live Paint group compared the faces'
fills without gradient placement, so faces with freeform gradients
counted as one shared fill and the edges took a freeform gradient
without its points. A freeform gradient on any face or edge now counts
as a paint the parts do not share, and the group keeps its paint.
- docs/mcp.md says that a face or edge given with its whole group follows
the group's rule, and that Default Fill and Stroke replaces the parts'
appearance also when the Default Graphic Style is redefined.
- The progress-doc line states the behavior as VectorCraft's own rule and
lists all eight tests.
- Tests cover freeform faces in Swap, an edge given with its group, and
Default Fill and Stroke with a redefined Default Graphic Style.
RenderOptions::hidden was a Vec<NodeId>, and the renderer checked each
node it visits against it with contains (node_checks::left_out and
Renderer::draw_node), so every check could compare against all k
hidden ids. The Fold Preview print hides every non-printing layer and,
with Show Fold Lines off, every object with a line role.
hidden is now a HashSet<NodeId>, so each check is one hash lookup. The
Fold Preview collects print_hidden's list into the set, and two tests
that built the field with vec! build it from an array. The field's doc
comment now names the Fold Preview print as its example.
New test a_render_leaves_out_every_object_of_a_large_hidden_set renders
2,000 strips with 1,000 of them in hidden and checks every strip's
pixel. It checks that hiding still works for a large set; the old Vec
drew the same pixels, so the test does not fail at run time without
the change.
A new tool in the Pen tool's group, chosen with Alt+P (Option+P on
macOS), draws paths of straight lines and circular arcs, as the Quick
Pen help pages describe:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.htmlhttps://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/quick-pen-tool-keyboard-shortcuts.html
- A click sets the start point; each click, or a press dragged to where
it is let go, adds a line, a continuous arc (it leaves the last point
in the path's direction) or a sharp-corner arc, as the tool's action
says. Each piece is one undo step.
- Alt (Option) pressed and let go on its own switches to the next
action. C flips the last sharp-corner arc to the other side of its
chord, and [ and ] make the arc size 15 degrees smaller or larger.
- A click on the first point closes the path, a click on an end of an
open path continues it, and Escape or Enter ends it. An edit made to
the path from outside the tool also ends it.
- path.quickPen {start | id, subpath?, keep?, pieces, closed?} draws
the same path for agents and scripts. The action and arc size are
kept with the preferences.
The 180 degree default arc size, its 15 degree steps, the side an arc
bulges to and Enter ending the path are VectorCraft's own rules.
Part of #2660 (reported by earlvanze). Not yet: the on-canvas toolbar,
dragging a path's ends to change its length, Ctrl+scroll for the arc
size, and editing and deleting with the tool.
With a tool other than the Live Paint Bucket, a fill given to a whole
selected Live Paint group paints its faces only and a stroke paints its
edges only, instead of applying to the group as a whole. The hidden
source paths keep their paint.
- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
paint.lastGradient, paint.editGradient, paint.setGradientGeom, the
paint.freeform point and line edits, paint.invert and
paint.complement go to the faces for a fill and the edges for a
stroke, also for a group given in ids or inside a selected group.
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
change the edges.
- The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke
panel and the Control bar show the edges' stroke. When the first
selected object is a Live Paint group with no faces (or no edges),
they show the next selected object's paint.
- paint.swap gives the faces the stroke the edges share and gives the
edges the fill the faces share, with a gradient fitted to each face
or edge. A group whose faces' fills or edges' strokes differ, or that
has no face or no edge, is left as it is.
- paint.default leaves the faces with no fill and gives the edges a
0.5 pt black stroke; with only Live Paint groups selected, the
settings for new art take the same.
Docs: docs/mcp.md (Live Paint), docs/target-app-parity.md (Live Paint
evidence), params text of the changed commands.