Package-level declarations
Types
A class which stores and caches the result of any calculated dominant colors.
Wrapper result class for the generation of a Palette.
A state object that generates a Palette from an ImageBitmap using loader.
Properties
Functions
Returns an appropriate color to use for any 'body' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.
Generates a Palette from this ImageBitmap.
Returns the selected swatch for the given target from the palette, or null
if one could not be found.
Returns the selected swatch for the given target from the palette, or null
if one could not be found.
Create a DominantColorState which will be remembered across compositions. Then can be used to generate a dominant color from an ImageBitmap.
Generates a Palette from this ImageBitmap and remembers the result.
Generates a Palette from this ImageBitmap and remembers the result.
Wrapper around rememberDominantColorState that uses PainterLoader to load the image.
Wrapper around rememberPaletteState that uses PainterLoader to load the image.
Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap.
Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap using loader.
Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.