SwatchTarget

sealed interface SwatchTarget

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

Mapped to Target in androidx-palette.

Inheritors

Types

Link copied to clipboard
data object Muted : SwatchTarget

Target for muted colors with low saturation.

Link copied to clipboard
data object MutedDark : SwatchTarget

Target for dark muted colors with low saturation and low lightness.

Link copied to clipboard
data object MutedLight : SwatchTarget

Target for light muted colors with low saturation and high lightness.

Link copied to clipboard
data object Vibrant : SwatchTarget

Target for vibrant colors with high saturation.

Link copied to clipboard

Target for dark vibrant colors with high saturation and low lightness.

Link copied to clipboard

Target for light vibrant colors with high saturation and high lightness.