CustomPalette represents a ColorPalette with custom colors of size size.

The Hsl saturation and lightness are set to the given values.

Inheritance

Properties

colors → List<HexColor>
read / write, inherited

lightness → double
read-only, inherited

saturation → double
read-only, inherited

size → int
read-only, inherited

Constructors

CustomPalette(saturation, lightness, size)

Creates a CustomPalette with the given saturation and lightness of size size.

Methods

toString() → String
inherited

toString() returns a newline seperated string containing every HexColor in colors with the '#' character prepended.