withLightness method

PdfColorHsl withLightness(
  1. double lightness
)

Returns a copy with a different lightness value.

Implementation

PdfColorHsl withLightness(double lightness) {
  return PdfColorHsl(hue, saturation, lightness, alpha);
}