HslColor constructor

const HslColor(
  1. num h,
  2. num s,
  3. num l
)

Creates a HslColor using a vector describing its hue, saturation, and luminance.

The hue is given as a number in degrees, typically ranging in value between 0 and 360. Values outside of this converted as hue % 360 to be fit into the standard angle range.

The saturation is given as a percentage between 0 and 100 (inclusive).

The luminance is given as a percentage between 0 and 100 (inclusive).

Implementation

const HslColor(this.h, this.s, this.l);