Skip to content

Add soft colorKey, feather, and dark-pixel protect - #10

Merged
pjeweb merged 1 commit into
mainfrom
color-key-soft-feather
Aug 28, 2026
Merged

Add soft colorKey, feather, and dark-pixel protect#10
pjeweb merged 1 commit into
mainfrom
color-key-soft-feather

Conversation

@pjeweb

@pjeweb pjeweb commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • colorKey can fade keyed pixels by color distance (soft) instead of a hard cut.
  • Optional feather blurs alpha after the punch; protectDarkerThan restores partial-alpha dark pixels so street names stay opaque.
  • Intended for a Stadtplan-ink overlay: punch road/block fills, keep baked labels.

Test plan

  • ./vendor/bin/phpunit tests/ColorKeyOpTest.php (25 tests)
  • Full PHPUnit suite + PHPStan
  • CI green
  • Tag v2.4.0 after merge so Packagist picks it up

Street-fill knockouts need a distance fade and a short alpha blur so
hole edges are not stair-stepped, while dark label pixels stay opaque.
@pjeweb
pjeweb merged commit ab5495c into main Aug 28, 2026
6 checks passed
@pjeweb
pjeweb deleted the color-key-soft-feather branch August 28, 2026 10:17
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