Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Illuminant
Standard CIE Illuminants under the 2° observer
Link copied to clipboard
Link copied to clipboard
A named chromaticity
Link copied to clipboard
A color space that is defined with a reference whitePoint.
Functions
Link copied to clipboard
fun Color.formatCssString(hueUnit: AngleUnit = AngleUnit.AUTO, renderAlpha: RenderCondition = RenderCondition.AUTO, unitsPercent: Boolean = false, alphaPercent: Boolean = false, legacyName: Boolean = false, legacyFormat: Boolean = false): String
Render this color in CSS functional notation.
Link copied to clipboard
fun Color.formatCssStringOrNull(hueUnit: AngleUnit = AngleUnit.AUTO, renderAlpha: RenderCondition = RenderCondition.AUTO, unitsPercent: Boolean = false, alphaPercent: Boolean = false, legacyName: Boolean = false, legacyFormat: Boolean = false): String?
Render this color in CSS functional notation if this color space is defined in the CSS standard, or return null if this color is in another color space.
Link copied to clipboard
Convert this color's hue to turns (360° == 1 turn)
Link copied to clipboard
Parse a string representing a CSS color value.
Link copied to clipboard
Parse a string representing a CSS color value, or return null if the string isn't in a recognized format.