Package-level declarations

Functions

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

Generate and remember a PaletteResult from a Image.

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

Wrapper around rememberDominantColorState that uses LibresLoader to load the image.

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

Wrapper around rememberPaletteState that uses LibresLoader to load the image.