Package-level declarations
Properties
Retrieves the Color that was used to generate this DynamicScheme.
Functions
Applies tonal elevation to a background color based on the current ColorScheme and elevation.
Blends this Color into another color, adjusting hue, chroma, and tone based on the specified amount.
Blends two colors together, adjusting hue, chroma, and tone based on the specified amount.
Blends the hue of this Color into another color while maintaining the original chroma and tone.
Blends the hue of one color into another while maintaining the original chroma and tone.
Calculates the contrast ratio between two colors.
Computes the cool-warm factor of a color.
Computes the contrast ratio of the tonal values between two colors.
Generates a set of content key tones from the specified color.
Lightens the color if it is disliked to make it more likable.
Converts a Color from Compose to its HCT (Hue, Chroma, Tone) representation.
Generates a set of key tones from the specified color.
Creates a TonalPalette based on the provided Color.
Creates a TonalPalette based on the provided Hct color representation.
Creates a TonalPalette based on the provided ARGB color integer.
Retrieves the Color that corresponds to this DynamicColor based on the provided DynamicScheme.
Blends the hue of this Color towards the hue of the specified other color, while keeping the original color recognizable and shifted towards the target color.
Blends the hue of the fromColor
towards the hue of the toColor
, while keeping the original color recognizable and shifted towards the target color.
Returns the Color that represents the given color
harmonized with the primary color of this ColorScheme.
Determines if the contrast ratio between two colors meets or exceeds a specified threshold.
Determines if the color is disliked.
Generates a set of key tones from the specified color.
Quantizes the colors in an ImageBitmap to a specified maximum number of colors.
Creates a state holder for the most suitable theme color derived from an ImageBitmap.
Creates a state holder for a list of theme colors derived from an ImageBitmap.
Computes the surface color at a given elevation using the current MaterialTheme's color scheme.
Creates a TemperatureCache for a color using color temperature theory.
Determines the most suitable color in an ImageBitmap for a UI theme.
Determines the most suitable color in an ImageBitmap for a UI theme, or null
if no suitable color is found.
Ranks colors extracted from an ImageBitmap by their suitability for a UI theme.
Generates a DynamicScheme based on the specified Color and configuration parameters.