Instances of the class ColorPalette represent an Array with length size of equally distant HexColors of the same saturation and lightness values.
Saturation and lightness are double
values between
0 and 100 (inclusive).
- Implemented by
Properties
- colors → List<HexColor>
-
read / write
- lightness → double
-
read-only
- saturation → double
-
read-only
- size → int
-
read-only
Constructors
- ColorPalette(double saturation, double lightness, int size)
-
creates a ColorPalette of size size, with the hex colors in [List] [colors] converted from Hsl colors with saturation and lightness set to the given values, and the hue value calculated with method
hueRange
.