generatePalette
suspend fun ImageBitmap.generatePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): Palette
Generates a Palette from this ImageBitmap.
Return
The generated Palette.
Parameters
coroutineContext
The CoroutineContext to use for the generation of the Palette.
block
A block to configure the Palette.Builder before generating the Palette.