Repository navigation
fix: preserve accent colors and reduce SVG cutout seams - #42
Conversation
Reviewer's GuideImplementationReview the automatic palette-selection changes, which use reconstruction scores to promote an automatic two-color pick when a larger palette scores better.
Review the SVG cutout backing logic, which adds backing only for enclosed opaque fills while preserving clear cutouts for hidden or translucent descendants.
DocumentationReview the updated automatic and vector-output contracts alongside the behavior changes they describe.
TestsCheck the SVG cutout output retains expected paths for hidden and translucent descendants.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
No actionable comments were generated in the recent review. This PR keeps small accent colors in
WalkthroughAutomatic palette selection now compares evaluated candidates against the two-color recommendation and can promote to a fixed palette for single-image and default batch processing. Vector output now adds opaque backing shapes to eligible cutout holes. SVG output supplies the alpha threshold, and tests cover nested opaque, hidden, and translucent regions. Merge Risk:
|
Summary
auto can flatten a small accent into the dominant color, and adjacent opaque fills can leave a faint seam in SVG cutouts.
Evidence
Merge Danger
Door Two-way
Blast Radius Tracing and SVG export
the benchmark SVGs grew by 20.1% in total. backing only covers enclosed opaque cutouts, so seams can still show between other shapes.
Summary by Sourcery
Improve automatic color selection and SVG cutout rendering to preserve accents and minimize seams.
Bug Fixes:
Enhancements:
Tests: