HSLuvColor.fromHSL constructor

const HSLuvColor.fromHSL(
  1. double hue,
  2. double saturation,
  3. double lightness
)

Creates a color.

All the arguments must not be null and be in their respective ranges. See the fields for each parameter for a description of their ranges.

Implementation

const HSLuvColor.fromHSL(this.hue, this.saturation, this.lightness)
    : assert(hue >= 0.0),
      assert(hue <= 360.0),
      assert(saturation >= 0.0),
      assert(saturation <= 100.0),
      assert(lightness >= 0.0),
      assert(lightness <= 100.0);