themeColor
fun ImageBitmap.themeColor(fallbackColor: Color = Color(-0xbd7a0c), filter: Boolean = true, maxColors: Int = MAX_COLORS_DEFAULT): Color
Determines the most suitable color in an ImageBitmap for a UI theme.
Receiver
The ImageBitmap to extract and rank colors from.
Return
The most suitable color for a UI theme.
Parameters
fallbackColor
The color to return if no suitable theme colors are found. Defaults to Google Blue.
filter
Whether to filter out undesirable color combinations.
maxColors
The maximum number of colors to extract from the image.