Commit 86fd401
committed
## [1.3.0] - 2024-07-12
## BIG UPDATE 🎉
### Added
- [X] Support for AdobeRGB, Oklab, Oklch, HSLuv, HPLuv, CIExyY, CIELuv, HWB, sRGB, and HSI color spaces
- [X] Support for converting between D50 and D65 white points for XYZ and Lab color spaces
- [X] New conversion functions:
- `rgbToOklab()`, `oklabToRgb()`
- `rgbToOklch()`, `oklchToRgb()`
- `rgbToHSLuv()`, `hsluvToRgb()`
- `rgbToHPLuv()`, `hpluvToRgb()`
- `rgbToCIExyY()`, `ciexyYToRgb()`
- `rgbToCIELuv()`, `cieLuvToRgb()`
- `rgbToHwb()`, `hwbToRgb()`
- `rgbToHsi()`, `hsiToRgb()`
- `rgbToSrgb()`, `srgbToRgb()`
- `adobeRGBToRGB()`, `rgbToAdobeRGB()`
- `xyzD50ToD65()`, `xyzD65ToD50()`
- `xyzD50ToRgb()`, `rgbToXyzD50()`
- `labD50ToRgb()`, `rgbToLabD50()`
- [X] New methods in Color class: `toOklab()`, `toOklch()`, `toHSLuv()`, `toHPLuv()`, `toCIExyY()`, `toCIELuv()`, `toHWB()`, `toHSI()`, `toSrgb()`, `toAdobeRGB()`
- [X] Updated demo site to showcase new color spaces and conversions
### Changed
- NAME CHANGE! 'next-color' is now 'color-core'
- New Demo Site! Built with next-ui 🧑🎨
- Updated type definitions to include Oklab, Oklch, HSLuv, HPLuv, CIExyY, and CIELUV
- Expanded test coverage for new color spaces, refactored tests to be less dumb.
- New calculations for LCH color space to improve accuracy
- New calculations for XYZ and LAB color spaces to account for white point differences
[Documentation](https://color-core.com/docs)1 parent 65d173e commit 86fd401
File tree
218 files changed
+6434
-2738
lines changed- .vscode
- assets/icons
- demo
- .yarn
- app
- demo/components
- components
- public
- assets
- docs
- assets
- classes
- functions
- interfaces
- media
- types
- variables
- src
- __tests__
- conversions
- components
- __tests__
- harmony/components/__tests__
- manipulation/components/__tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
218 files changed
+6434
-2738
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
11 | 36 | | |
12 | 37 | | |
13 | 38 | | |
14 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
15 | 44 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 45 | + | |
22 | 46 | | |
23 | 47 | | |
24 | 48 | | |
| |||
0 commit comments