|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -## Unreleased |
| 3 | +## [3.2.0] |
4 | 4 | ### Added |
5 | 5 | - `hueOr` extension to colors like `HSV` that returns the color's hue or a fallback value if the hue is undefined. |
6 | 6 |
|
7 | 7 | ### Changed |
8 | 8 | - Updated Kotlin to 1.6.0 |
9 | 9 |
|
10 | | -## [3.1.1] - 2021-09-28 |
| 10 | +## [3.1.1] |
11 | 11 | ### Fixed |
12 | 12 | - Fix shared immutability for background threads on Kotlin Native |
13 | 13 |
|
14 | | -## [3.1.0] - 2021-09-24 |
| 14 | +## [3.1.0] |
15 | 15 | ### Added |
16 | 16 | - Optional modules with extensions for converting between Colormath colors and other platform representations. |
17 | 17 |
|
18 | 18 | ### Changed |
19 | 19 | - Unspecified alpha values now default to fully opaque |
20 | 20 |
|
21 | | -## [3.0.0] - 2021-09-10 |
| 21 | +## [3.0.0] |
22 | 22 | ### Added |
23 | 23 | - New color models: `Oklab`, `Oklch`, `HWB`, `HPLuv`, `HSLuv`, `LCHab`, `LCHuv`, `JzAzBz`, `JzCzHz`, `ICtCp` |
24 | 24 | - New RGB color spaces: `Linear sRGB`, `ACES`, `ACEScc`, `ACEScct`, `ACEScg`, `Adobe RGB`, `BT.2020`, `BT.709`, `DCI P3`, `Display P3`, `ProPhoto` |
|
47 | 47 | - Removed `Ansi16` companion object color constants. |
48 | 48 | - Removed `Color.toHex()`. Use `RGB.toHex()` instead. |
49 | 49 |
|
50 | | -## [2.1.0] - 2021-05-05 |
| 50 | +## [2.1.0] |
51 | 51 | ### Added |
52 | 52 | - Added CIE LUV colorspace support |
53 | 53 | - Added CIE LCH(uv) colorspace support |
|
60 | 60 | - `Color.fromCss` now clamps out-of-range values in accordance with the CSS Color Module Level 4 spec |
61 | 61 |
|
62 | 62 |
|
63 | | -## [2.0.0] - 2020-09-12 |
| 63 | +## [2.0.0] |
64 | 64 | ### Added |
65 | 65 | - Added multiplatform support. |
66 | 66 |
|
|
70 | 70 | ### Deprecated |
71 | 71 | - Renamed `ConvertibleColor` to `Color`. The old name is left as a deprecated type alias. |
72 | 72 |
|
73 | | -## [1.4.1] - 2020-05-12 |
| 73 | +## [1.4.1] |
74 | 74 | ### Fixed |
75 | 75 | - Fix `RGB(255,255, 255).toLAB()` throwing an exception due to rounding precision. |
76 | 76 |
|
77 | | -## [1.4.0] - 2019-12-22 |
| 77 | +## [1.4.0] |
78 | 78 | ### Added |
79 | 79 | - `hueAsRad()`, `hueAsGrad()`, and `hueAsTurns()` extensions for `HSL` and `HSV` classes. |
80 | 80 | - `toHex()` now has a `renderAlpha` parameter that lets you render the color's alpha channel in the hex. By default the alpha will be added if it's < 1. |
|
86 | 86 | - `ColorMath.parseCssColor()` renamed to `ConvertableColor.fromCss()` and `ColorMath.cssKeywordColors` to `CssColors.colorsByName` |
87 | 87 |
|
88 | 88 |
|
89 | | -## [1.3.0] - 2019-12-19 |
| 89 | +## [1.3.0] |
90 | 90 | ### Added |
91 | 91 | - All colors now have an `alpha` channel, defaulting to 1 (fully opaque). For colorspaces that support transparency, you can pass an alpha value into their constructors. |
92 | 92 | - `ColorMath.parseCssColor()` can parse all valid HTML/CSS colors, including rgb, hsl, and named colors. |
|
96 | 96 | - Switch rounding methods to use `kotlin.math` rounding, which can slightly change conversion results in some cases. |
97 | 97 |
|
98 | 98 |
|
99 | | -## [1.2.0] - 2018-08-19 |
| 99 | +## [1.2.0] |
100 | 100 | ### Added |
101 | 101 | - Add ability to construct RGB instances from packed integers or Bytes |
0 commit comments