Package-level declarations

Functions

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

Wrapper around rememberDominantColorState that uses ByteArrayLoader to load the image.

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

Wrapper around rememberPaletteState that uses ByteArrayLoader to load the image.

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

Generate and remember a PaletteResult from a ByteArray.