Skip to content

feat: HSL color space + adjust_lightness - #77

Merged
0717lee merged 1 commit into
mainfrom
feat/hsl
Jul 31, 2026
Merged

feat: HSL color space + adjust_lightness#77
0717lee merged 1 commit into
mainfrom
feat/hsl

Conversation

@0717lee

@0717lee 0717lee commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Adds rgb_to_hsl / hsl_to_rgb mirroring the existing HSV implementation style, plus Image::adjust_lightness(delta) with clamped hue-preserving lighten/darken. 5 new tests: primary/white reference values, exact 8-bit round trips over 10 samples, gray invariance, +-1 delta saturates to white/black, delta 0 exact copy with alpha preserved. 172/172 tests passing. Closes #74

@0717lee
0717lee merged commit f592b07 into main Jul 31, 2026
1 check passed
@0717lee
0717lee deleted the feat/hsl branch July 31, 2026 11:40
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.

HSL color space + lightness adjustment

1 participant