Releases: ajalt/colormath
Releases · ajalt/colormath
3.6.0
3.5.0
Added
- Publish artifacts for the
JS
andwasmJs
targets for the jetpack-compose extensions. - Added support to
formatCssString
andColor.parse
for color spaces added in recent updates to the CSS color spec:oklab
,oklch
,srgb-linear
,xyz-d50
andxyz-d65
. - Added
customColorSpaces
forColor.parse
andColor.formatCssString
to allow non-standard color spaces to be used in color strings. - Added
min
andmax
properties toColorComponentInfo
to get the reference range for the component. - Support percentage format for all values in
Color.parse
with 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.parse
now 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.parse
no longer clamps out-of-gamut values by default. Use the newclamp
method on the returned color if desired.
Fixed
ColorSpace.equals
will now properly return true when comparing color companions with the space they represent e.g.XYZ == XYZ65
- Support the CSS "none" keyword for
NaN
values inColor.parse
andColor.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-compose
now publishes multiplatform targets for JVM and iOS in addition to the existing android target.
Changed
- Updated Kotlin to 1.8