Package-level declarations

Types

Link copied to clipboard
sealed interface Color : CSSColorValue

A base class for colors which provides additional functionality on top of the color class included in Compose HTML.

Link copied to clipboard
object Colors

Properties

Link copied to clipboard

Check if a color is perceived bright or not.

Link copied to clipboard

Calculate a color's luminance, which is a calculation for how bright it is perceived to be by the human eye.

Functions

Link copied to clipboard
fun Color.lightened(byPercent: Float = Color.DEFAULT_SHIFTING_PERCENT): Color

Lighten this color by some target percent value.