Color

Create color references for styling composable properties

View in Playground

When it comes to color references, there are a collection of ways to obtain and create colors for styling purposes

Predefined Color values

Color.Red,
Color.Green,
Color.LightGray,
Color.DarkGray,
Color.Black,
Color.White,
Color.Cyan,
Color.Blue,
Color.Gray,
Color.Magenta,
Color.Transparent,
Color.Yellow,
Color.Unset

Color from Long value

Color(0xFF000080)

Color from Float values

Color(
    red = 1.0f,
    green = 0f,
    blue = 0f,
    alpha = 1f
)

Color from RGBA values

Color(
    red = 255,
    green = 0,
    blue = 0,
    alpha = 1
)