rememberThemeColors
Create and remember the colors of the image loader loads for input, ranked by how well they would seed a UI theme.
The image is loaded and quantized off the main thread, so the first composition sees only fallback and later ones see the scored colors. Results are cached by input, which means going back to an image you already used costs nothing.
Return
Colors sorted by suitability for a UI theme, or a list holding only fallback until there are any.
Parameters
The ImageBitmapLoader that turns input into an image.
The input to load, and the cache key of its result.
color to be returned if no other options available.
The number of colors to return.
whether to filter out undesirable combinations.
The maximum number of palettes to cache. If 0, no caching will be done.
The CoroutineContext to generate the palette on.
A lambda applied to the Palette.Builder to customize the generation.
Type Parameters
The type of the input to load with loader.