-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(color): major update/rename all types/conversions
BREAKING CHANGE: update/rename all color types/conversions - rename YCbCrA => YCC - remove `A` suffix from all color types (e.g. `HSVA` => `HSV`, `XYZA` => `XYZ` etc.) - accordingly, rename all conversions (e.g. `rgbaHsva()` => `rgbHsv()`) - rename `.alpha` accessor in all color types (previously a mixture of `.a` vs `.alpha`, now always latter) - standardize casing in all function names (now always camelCase) e.g. `asCSS()` => `asCss()` - resolveAsCss() untyped default now sRGB - rename distSatHsv() => distHsvSat() - rename distLumaHsv() => distHsvLuma() - rename distLumaRGB() => distRgbLuma() - add distChannel() HOF - add basic convert() support for Lab<>LCH<>CSS - add/update docstrings - rename RANGES => COLOR_RANGES - update colorFromRange(), colorsFromRange() and colorsFromTheme() to return wrapped HSV colors
- Loading branch information
1 parent
dc88f37
commit 4143c8f
Showing
67 changed files
with
676 additions
and
736 deletions.
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
Oops, something went wrong.