from

Generates a set of key tones from the specified color.

This function creates a CorePalette based on the provided color, including key tones for use in color palette design. This is an alias for of.

Return

A CorePalette object containing the key tones derived from the specified color.

Parameters

baseColor

The Color from which to create key tones.


Converts a Color from Compose to its HCT (Hue, Chroma, Tone) representation.

Return

The Hct representation of the specified color.

Parameters

color

The Color to convert.


Creates a TonalPalette based on the provided Color.

This function generates a tonal palette that is derived from the given color.

Return

The generated TonalPalette derived from the specified color.

Parameters

color

The Color from which to generate the TonalPalette.


Creates a TonalPalette based on the provided ARGB color integer.

This function generates a tonal palette using the ARGB color integer value.

Return

The generated TonalPalette derived from the specified ARGB value.

Parameters

argb

The ARGB integer representation of the color to create the TonalPalette.


Creates a TonalPalette based on the provided Hct color representation.

This function generates a tonal palette using the HCT (Hue, Chroma, Tone) color model.

Return

The generated TonalPalette derived from the specified HCT color model.

Parameters

hct

The Hct color representation to generate the TonalPalette from.