themeColorOrNull
fun ImageBitmap.themeColorOrNull(filter: Boolean = true, maxColors: Int = DEFAULT_QUANTIZE_MAX_COLORS): Color?
Determine the most suitable color in a ImageBitmap for a UI theme or null
Receiver
the ImageBitmap to extract colors from.
Return
The most suitable color for a UI theme or null
if no suitable color found.
Parameters
filter
whether to filter out undesirable combinations.
maxColors
The number of colors to divide the image into.