Package-level declarations
Properties
A MaterialKolors class that holds the generated colors based on the current state.
Returns the Material 3 color scheme based on the current dynamic color scheme.
Get the Color used to generate the DynamicScheme.
Functions
Create content key tones from a color.
Contrast ratio is a measure of legibility, its used to compare the lightness of two colors. This method is used commonly in industry due to its use by WCAG.
Create a DynamicScheme based on the provided colors.
If color is disliked, lighten it to make it likable.
Create key tones from a color.
Generates a TonalPalette from the given color.
Generates a TonalPalette from the given Hct.
Generates a TonalPalette from the given argb color int.
Returns an Color that represents the color of this DynamicColor in the given scheme.
Blend the color's HCT hue towards the other color's HCT hue, in a way that leaves the original color recognizable and recognizably shifted towards the key color.
Blend the design color's HCT hue towards the key color's HCT hue, in a way that leaves the original color recognizable and recognizably shifted towards the key color.
Returns the Color of the given color harmonized with the ColorScheme.primary.
Check if the contrast ratio between two colors is greater than or equal to a given threshold.
Returns true if color is disliked.
Create key tones from a color.
Quantize the colors in a ImageBitmap to a maximum of maxColors colors.
Create and remember a DynamicScheme based on the provided colors.
Determine the most suitable color in a ImageBitmap for a UI theme.
Determine the most suitable color in a ImageBitmap for a UI theme.
Value representing cool-warm factor of a color.
Design utilities using color temperature theory.
Determine the most suitable color in a ImageBitmap for a UI theme.
Determine the most suitable color in a ImageBitmap for a UI theme or null
Rank the colors in a ImageBitmap by their suitability for being used for a UI theme.
Generate a DynamicScheme based on the given Color.
Contrast ratio of two tones. T in HCT, L* in Lab*. Also known as luminance or perpetual luminance.
Get a tonal Color from the TonalPalette with the given tone.