mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 15:08:40 +00:00
Calligraphic and Scatter Brush Options offer Stylus Wheel for Size, and Art Brush Options offer it for Width. The Paintbrush records where the pen's finger wheel is set along each stroke (`StrokeLayer::wheel`, 0..1), and the stroke keeps it through saving, continuing, reversing and blends. A value on Stylus Wheel goes from its low end at one end of the wheel's travel to its high end at the other; a stroke without a wheel draws the value half way. - Input: XInput2's `Abs Wheel` valuator under X11 and XWayland, and AppKit's `tangentialPressure` on macOS. Windows pointer messages have no field for the wheel. - Commands: `path.freehand` and `brush.freehand` points take the wheel seventh or as `wheel`, and `pointer_gesture` events take `wheel`; values are clamped to 0..1 and non-numbers are refused. - `.ai` brush definitions read and write variation code 3 as Stylus Wheel instead of reading it as Random, or as Fixed when the value has no variation. - `appearance_heap_bytes` counts a stroke's tilt, bearing, rotation and wheel recordings as well as its pressure. Docs: docs/mcp.md, docs/target-app-parity.md, docs/file-format-parity.md.