withLightness method
Returns a copy of this color with the lightness parameter replaced with
the given value.
Implementation
HSLuvColor withLightness(double lightness) {
return HSLuvColor.fromHSL(hue, saturation, lightness.clamp(0.0, 100.0));
}
Returns a copy of this color with the lightness parameter replaced with
the given value.
HSLuvColor withLightness(double lightness) {
return HSLuvColor.fromHSL(hue, saturation, lightness.clamp(0.0, 100.0));
}