from

fun Hct.Companion.from(color: Color): Hct

Convert a Compose Color to Hct.

Return

The HCT representation of the color.

Parameters

color

The color to convert.


fun TonalPalette.Companion.from(color: Color): TonalPalette

Generates a TonalPalette from the given color.

Return

The generated TonalPalette.

Parameters

color

The color to generate the TonalPalette from.


fun TonalPalette.Companion.from(argb: Int): TonalPalette

Generates a TonalPalette from the given argb color int.

Return

The generated TonalPalette.

Parameters

argb

The ARGB representation of a color to generate the TonalPalette from.


fun TonalPalette.Companion.from(hct: Hct): TonalPalette

Generates a TonalPalette from the given Hct.

Return

The generated TonalPalette.

Parameters

hct

The color to generate the TonalPalette from.