Skip to content

Add symmetry painting and seamless tile preview - #163

Merged
IAmJSD merged 6 commits into
mainfrom
feat/symmetry-painting
Sep 20, 2026
Merged

IAmJSD merged 6 commits into
mainfrom
feat/symmetry-painting

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

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.
  • Additional combined validation: native/browser checks, strict whole-workspace Clippy, full i18n, and 440 model/codec/gallery/paint tests passed on the temporary integration branch containing this feature and the other parallel changes. After the guide overlay fix, combined strict Clippy, browser check, formatting and 85 brush/settings/plugin API tests were repeated successfully.

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.

@IAmJSD
IAmJSD force-pushed the feat/symmetry-painting branch from 493208d to 115a195 Compare September 20, 2026 13:01
@IAmJSD
IAmJSD merged commit b613024 into main Sep 20, 2026
5 checks passed
@IAmJSD
IAmJSD deleted the feat/symmetry-painting branch September 20, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant