from

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.