Publish artifacts for the JS and wasmJs targets for the jetpack-compose extensions.
Added support to formatCssString and Color.parse for color spaces added in recent updates to the CSS color spec: oklab, oklch, srgb-linear, xyz-d50 and xyz-d65.
Added customColorSpaces for Color.parse and Color.formatCssString to allow non-standard color spaces to be used in color strings.
Added min and max properties to ColorComponentInfo 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.
Color.parse now parses lch() and lab() 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 new clamp method on the returned color if desired.
The core module now publishes multiplatform targets for iosSimulatorArm64, tvosSimulatorArm64, and watchosSimulatorArm64.
The Jetpack Compose extensions module colormath-ext-jetpack-compose now publishes multiplatform targets for JVM and iOS in addition to the existing android target.
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.
ColorMath.cssKeywordColors is a map of HTML/CSS color names to RGB the colors they represent.