Companion

object Companion

See also

Properties

Link copied to clipboard
const val MAX_ALPHA: Double = 1.0

Maximum value for alpha component.

Link copied to clipboard
const val MAX_RGB: Int = 255

Maximum value for RGB components.

Functions

Link copied to clipboard
fun Color.Companion.decode(raw: String, vararg decoders: ColorDecoder = arrayOf( HexColorDecoder, RgbColorDecoder, RgbaColorDecoder, HsvHslColorDecoder, NamedColorDecoder, )): Color?

Decodes a Color from a raw string using the first decoder that successfully decodes it.

Link copied to clipboard
fun Color.Companion.from(colormathColor: Color): Color