withLightness method
- double lightness
Returns a copy of this color with the lightness
parameter replaced with
the given value.
Implementation
HSLColor withLightness(double lightness) {
return HSLColor.fromAHSL(alpha, hue, saturation, lightness);
}