Skip to content

Commit 8604a85

Browse files
committed
Release version 3.2.0
1 parent 82508b4 commit 8604a85

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# Changelog
22

3-
## Unreleased
3+
## [3.2.0]
44
### Added
55
- `hueOr` extension to colors like `HSV` that returns the color's hue or a fallback value if the hue is undefined.
66

77
### Changed
88
- Updated Kotlin to 1.6.0
99

10-
## [3.1.1] - 2021-09-28
10+
## [3.1.1]
1111
### Fixed
1212
- Fix shared immutability for background threads on Kotlin Native
1313

14-
## [3.1.0] - 2021-09-24
14+
## [3.1.0]
1515
### Added
1616
- Optional modules with extensions for converting between Colormath colors and other platform representations.
1717

1818
### Changed
1919
- Unspecified alpha values now default to fully opaque
2020

21-
## [3.0.0] - 2021-09-10
21+
## [3.0.0]
2222
### Added
2323
- New color models: `Oklab`, `Oklch`, `HWB`, `HPLuv`, `HSLuv`, `LCHab`, `LCHuv`, `JzAzBz`, `JzCzHz`, `ICtCp`
2424
- New RGB color spaces: `Linear sRGB`, `ACES`, `ACEScc`, `ACEScct`, `ACEScg`, `Adobe RGB`, `BT.2020`, `BT.709`, `DCI P3`, `Display P3`, `ProPhoto`
@@ -47,7 +47,7 @@
4747
- Removed `Ansi16` companion object color constants.
4848
- Removed `Color.toHex()`. Use `RGB.toHex()` instead.
4949

50-
## [2.1.0] - 2021-05-05
50+
## [2.1.0]
5151
### Added
5252
- Added CIE LUV colorspace support
5353
- Added CIE LCH(uv) colorspace support
@@ -60,7 +60,7 @@
6060
- `Color.fromCss` now clamps out-of-range values in accordance with the CSS Color Module Level 4 spec
6161

6262

63-
## [2.0.0] - 2020-09-12
63+
## [2.0.0]
6464
### Added
6565
- Added multiplatform support.
6666

@@ -70,11 +70,11 @@
7070
### Deprecated
7171
- Renamed `ConvertibleColor` to `Color`. The old name is left as a deprecated type alias.
7272

73-
## [1.4.1] - 2020-05-12
73+
## [1.4.1]
7474
### Fixed
7575
- Fix `RGB(255,255, 255).toLAB()` throwing an exception due to rounding precision.
7676

77-
## [1.4.0] - 2019-12-22
77+
## [1.4.0]
7878
### Added
7979
- `hueAsRad()`, `hueAsGrad()`, and `hueAsTurns()` extensions for `HSL` and `HSV` classes.
8080
- `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,7 +86,7 @@
8686
- `ColorMath.parseCssColor()` renamed to `ConvertableColor.fromCss()` and `ColorMath.cssKeywordColors` to `CssColors.colorsByName`
8787

8888

89-
## [1.3.0] - 2019-12-19
89+
## [1.3.0]
9090
### Added
9191
- 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.
9292
- `ColorMath.parseCssColor()` can parse all valid HTML/CSS colors, including rgb, hsl, and named colors.
@@ -96,6 +96,6 @@
9696
- Switch rounding methods to use `kotlin.math` rounding, which can slightly change conversion results in some cases.
9797

9898

99-
## [1.2.0] - 2018-08-19
99+
## [1.2.0]
100100
### Added
101101
- Add ability to construct RGB instances from packed integers or Bytes

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ Colormath is distributed through [Maven Central](https://search.maven.org/artifa
5050

5151
```groovy
5252
dependencies {
53-
implementation("com.github.ajalt.colormath:colormath:3.1.1")
53+
implementation("com.github.ajalt.colormath:colormath:3.2.0")
5454
5555
// optional extensions for interop with other platforms
5656
//
5757
// android.graphics.Color
58-
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.1.1")
58+
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.2.0")
5959
// androidx.annotation.ColorInt
60-
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.1.1")
60+
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.2.0")
6161
// androidx.compose.ui.graphics.Color
62-
implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.1.1")
62+
implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.2.0")
6363
}
6464
```
6565

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=3.1.1
1+
VERSION_NAME=3.2.0
22

33
# work around for compose-web bug KT-48273
44
kotlin.js.webpack.major.version=4

0 commit comments

Comments
 (0)