-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MudColor: Add Palette algorithms #10313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10313 +/- ##
=======================================
Coverage 91.54% 91.54%
=======================================
Files 414 415 +1
Lines 13016 13017 +1
Branches 2457 2457
=======================================
+ Hits 11916 11917 +1
Misses 549 549
Partials 551 551 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
|
@henon @danielchalmers just tagging you both to let you know that this exists now. |
Description
Since we already have the Lerp algorithm (#10275) and MudColor implements
HSLinformation,ColorLighten, andColorDarken, I thought it would make sense to add palette algorithms.NB!: These algorithms are very simple, generic and most common ones. They do not allocate any additional memory, as I only use
IEnumerableandyield return.I replaced the statically generated palette in
ColorPickerPaletteExamplewith our algorithms:How Has This Been Tested?
Unit tests added, visually
Type of Changes
Checklist
dev).