Skip to content

Commit

Permalink
Release version 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Dec 11, 2021
1 parent 82508b4 commit 8604a85
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Changelog

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

### Changed
- Updated Kotlin to 1.6.0

## [3.1.1] - 2021-09-28
## [3.1.1]
### Fixed
- Fix shared immutability for background threads on Kotlin Native

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

### Changed
- Unspecified alpha values now default to fully opaque

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

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


## [2.0.0] - 2020-09-12
## [2.0.0]
### Added
- Added multiplatform support.

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

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

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


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


## [1.2.0] - 2018-08-19
## [1.2.0]
### Added
- Add ability to construct RGB instances from packed integers or Bytes
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ Colormath is distributed through [Maven Central](https://search.maven.org/artifa

```groovy
dependencies {
implementation("com.github.ajalt.colormath:colormath:3.1.1")
implementation("com.github.ajalt.colormath:colormath:3.2.0")
// optional extensions for interop with other platforms
//
// android.graphics.Color
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.1.1")
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-color:3.2.0")
// androidx.annotation.ColorInt
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.1.1")
implementation("com.github.ajalt.colormath.extensions:colormath-ext-android-colorint:3.2.0")
// androidx.compose.ui.graphics.Color
implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.1.1")
implementation("com.github.ajalt.colormath.extensions:colormath-ext-jetpack-compose:3.2.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=3.1.1
VERSION_NAME=3.2.0

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

0 comments on commit 8604a85

Please sign in to comment.