Package-level declarations

Properties

Link copied to clipboard
@Stable
val Color.alphaInt: Int

Returns the alpha component of the color as an integer between 0 and 255.

Link copied to clipboard
@Stable
val Color.blueInt: Int

Returns the blue component of the color as an integer between 0 and 255.

Link copied to clipboard
@Stable
val Color.greenInt: Int

Returns the green component of the color as an integer between 0 and 255.

Link copied to clipboard
@Stable
val Color.redInt: Int

Returns the red component of the color as an integer between 0 and 255.

Functions

Link copied to clipboard
@Stable
fun Color.asRgb(): CSSColorValue

Converts the Color to a CSSColorValue in the rgb() format.

Link copied to clipboard
@Stable
fun Color.asRgba(): CSSColorValue

Converts the Color to a CSSColorValue in the rgba() format.