-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Color Picker] Feature/lab color representation (#12935)
* Created logic to convrt RGB to CIELAB (with intermediate step to CIEXYZ) * Added CIELAB to the available color representation types * Created tests for the color conversion from RGB to LAB (and for RGB to XYZ) * Update ColorPickerViewModel to keep the L*a*b* format the same * Improved variable names & comment * Remove url from color converting website to avoid unnecessary license issues * Removed typo of the wrong variable * Added expected words into dictionary * Added links to explain used formulas * Added CIE XYZ color space * Added 'SRGB' to the dictionary * Updated the range for the X and Z value in the CIE XYZ color space comments * Fixed XYZ to LAB calculations * Changed output format for CIELAb Changed L*a*b*(L,a,b) to CIELab(L,a,b) * Changed output in tests * Fixed tests * Added extra accuracy * Add decimal places to cielab and ciexyz formats Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
- Loading branch information
1 parent
88e2426
commit 3358fd9
Showing
8 changed files
with
259 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters