Releases: ajalt/colormath
Releases · ajalt/colormath
3.6.1
3.6.0
Added
- Publish artifacts for the
watchosArm32target (thanks @ReneeVandervelde)
Changed
- Update Kotlin to 2.0.0
3.5.0
Added
- Publish artifacts for the
JSandwasmJstargets for the jetpack-compose extensions. - Added support to
formatCssStringandColor.parsefor color spaces added in recent updates to the CSS color spec:oklab,oklch,srgb-linear,xyz-d50andxyz-d65. - Added
customColorSpacesforColor.parseandColor.formatCssStringto allow non-standard color spaces to be used in color strings. - Added
minandmaxproperties toColorComponentInfoto get the reference range for the component. - Support percentage format for all values in
Color.parsewith reference range scaling from the new drafts of CSS Color Module 4. - Added
clamp()function to all color models to clamp the color components to their valid range.
Changed
Color.parsenow parseslch()andlab()functions with the with D50 white points instead of D65 in order to comply with the latest draft of CSS Color Module 4.Color.parseno longer clamps out-of-gamut values by default. Use the newclampmethod on the returned color if desired.
Fixed
ColorSpace.equalswill now properly return true when comparing color companions with the space they represent e.g.XYZ == XYZ65- Support the CSS "none" keyword for
NaNvalues inColor.parseandColor.formatCssString
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
Added
- The core module now publishes multiplatform targets for
iosSimulatorArm64,tvosSimulatorArm64, andwatchosSimulatorArm64. - The Jetpack Compose extensions module
colormath-ext-jetpack-composenow publishes multiplatform targets for JVM and iOS in addition to the existing android target.
Changed
- Updated Kotlin to 1.8