Package-level declarations

Functions

Link copied to clipboard
fun Resource.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Resource.

Link copied to clipboard
fun rememberResourcePaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Resource>

Wrapper around rememberPaletteState that uses ResourceLoader to load the image.

Link copied to clipboard
fun rememberResourcesDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Resource>

Wrapper around rememberDominantColorState that uses ResourceLoader to load the image.