rememberThemeColor
fun rememberThemeColor(image: ImageBitmap, fallbackColor: Color = MaterialTheme.colorScheme.primary, filter: Boolean = true, maxColors: Int = MAX_COLORS_DEFAULT): Color
Creates a state holder for the most suitable theme color derived from an ImageBitmap.
Return
The most suitable color for a UI theme.
Parameters
image
The ImageBitmap to extract colors from.
fallbackColor
The color to return if no suitable theme colors are found. Defaults to the primary color of the Material theme.
filter
Whether to filter out undesirable color combinations.
maxColors
The maximum number of colors to extract from the image.