Repository navigation
Add symmetry painting and seamless tile preview - #163
Merged
Merged
Conversation
IAmJSD
force-pushed
the
feat/symmetry-painting
branch
from
September 20, 2026 13:01
493208d to
115a195
Compare
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.
Brush, Pencil and Eraser now offer a Symmetry popover beside Preset: vertical/horizontal mirrors, radial painting with 2–24 copies, and a Position action for dragging the axes or center. Reflected/rotated tip textures and scatter share the stroke's coverage, pressure response, selection clipping, cancellation and single undo step.
The same popover enables a seamless tile preview. The viewport repeats the composited canvas with edge-aware resampling, and painting across a repeat edge wraps to the opposite canvas edge. The outlined source canvas remains the export area; previewing does not change dimensions or duplicate document content. Oversized textured tips wrap their complete footprint, including opaque detail several repetitions from the center.
Validation completed on this branch, using an isolated target directory:
make test-symmetry: 91 tests passed (87 engine/API/compositor tests and four editor viewport-frame tests), including all 18 new geometry/stroke/periodic regressions and the independent full-support folding oracle.make check-symmetry: editor, paint engine, compositor and plugin API checked with all test targets.make check-i18n: 27 Rust tests, one doc test, four browser loader tests, and all 150 catalogs, font coverage and aliases passed. Both new labels are present in every shipped locale.make check-symmetry-format: full-workspace formatting passed; this fixes the first Ubuntu CI run's module-ordering failure.make app PROFILE=debug: native application built successfully. Xvfb/Lavapipe smoke exercised the Symmetry controls, moved mirror axis, mirrored painting, single-step undo/redo, radial segment selection and painting, zoomed tile repetition, and painting across a tile edge while the document remained 128×128. A guide-contrast issue found during this smoke was fixed and visually rechecked: axes, radial spokes and the source-tile boundary remain visible on white artwork.The repeated viewport currently uses the CPU resampler. Only required source tiles are composited, and the sparse tile index is bounded. Symmetry and preview settings last for the session; wraparound editing applies to Brush, Pencil and Eraser. The workflow and limits are documented in
docs/symmetry-painting.md.