Skip to content

Enhance color palette generation with saturation curve options#3942

Open
ZivSa1 wants to merge 1 commit intomasterfrom
feat/new-lightness-and-saturation-logic
Open

Enhance color palette generation with saturation curve options#3942
ZivSa1 wants to merge 1 commit intomasterfrom
feat/new-lightness-and-saturation-logic

Conversation

@ZivSa1
Copy link
Collaborator

@ZivSa1 ZivSa1 commented Feb 26, 2026

Description

  • Updated GeneratePaletteOptions to include saturationCurve, saturationThreshold, and saturationFloor for improved saturation adjustments.
  • Refactored adjustSaturation function to utilize the new saturation curve logic.
  • Modified color tint tests to match the changes + added tests for new logic.

Changelog

Colors: ColorPalette new Lightness and Saturation logic

Additional info

Ticket 4308

- Updated GeneratePaletteOptions to include saturationCurve, saturationThreshold, and saturationFloor for improved saturation adjustments.
- Refactored adjustSaturation function to utilize the new saturation curve logic.
- Modified color tint tests to reflect new expected values based on saturation adjustments.
- Added tests to ensure saturation curve behavior respects thresholds and custom floor values.
@github-actions
Copy link
Contributor

✅ PR Description Validation Passed

All required sections are properly filled out:

  • Description
  • Changelog
  • Additional info

Your PR is good for review! 🚀


This validation ensures all sections from the PR template are properly filled.

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.

2 participants