Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The default filter.

Link copied to clipboard
Link copied to clipboard
const val MIN_CONTRAST_BODY_TEXT: Float = 4.5f
Link copied to clipboard
const val MIN_CONTRAST_TITLE_TEXT: Float = 3.0f

Functions

Link copied to clipboard

Start generating a Palette with the returned Builder instance.

fun from(swatches: List<Palette.Swatch>): Palette

Generate a Palette from the pre-generated list of Palette.Swatch swatches. This is useful for testing, or if you want to resurrect a Palette instance from a list of swatches. Will return null if the swatches is null.