Repository navigation
Part of #852: Brush Options for Calligraphic and Bristle brushes, pen pressure - #906
Merged
Merged
Conversation
… pressure Double-clicking a brush in the Brushes panel (or the panel menu's Brush Options…) opens its options. Calligraphic Brush Options: Angle, Roundness and Size, each Fixed, Random or Pressure with its Variation, over live previews of the nib and of a stroke. Bristle Brush Options: Shape and the bristle sliders. OK runs brush.options; strokes painted with the brush update. The Paintbrush records the pen pressure along a stroke (path.freehand takes [x, y, pressure] points), and a Calligraphic brush with Pressure variation changes its nib along the stroke, from the value less the variation at the lightest pressure to the value plus it at the heaviest. Brushes saved before keep their Random variation. Pen pressure doesn't reach the app on macOS yet (winit 0.30 reports none there). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #852.
Brush Options. Double-clicking a brush in the Brushes panel (or the panel menu's Brush Options…,
ui.brushOptions) opens its options:brush.options; strokes painted with the brush update. A name another brush has keeps the dialog open. Scatter, Art and Pattern Brush Options are next.Pen pressure. The Paintbrush records the pen pressure along a stroke (
path.freehandtakes[x, y, pressure]points; a mouse presses fully), and the stroke keeps it. A Calligraphic brush with Pressure variation changes its nib along the stroke, from the value less the variation at the lightest pressure to the value plus it at the heaviest, kept within each value's range; the sweep is sampled densely (capped) where the nib varies. Graphic styles and Copy Appearance don't carry a stroke's pressure. Brushes saved before keep their Random variation (modesabsent means Random where the variation isn't zero).Limit: pen pressure doesn't reach the app on macOS yet: winit 0.30 reports no pressure there. On Windows and Linux (X11, XWayland) it does.
Tested:
cargo xtask ci(all 7 steps).brush.optionssets the modes and refuses bad ones;command_sweepcases.🤖 Generated with Claude Code