HSLColour constructor

const HSLColour({
  1. double alpha = 1.0,
  2. double hue = 360,
  3. double saturation = 1.0,
  4. double lightness = 1,
})

Creates an HSL colour. With the defaults (lightness 1.0) the result is opaque white.

Implementation

const HSLColour({
  this.alpha = 1.0,
  this.hue = 360,
  this.saturation = 1.0,
  this.lightness = 1,
});