HSVColour.fromAHSV constructor

const HSVColour.fromAHSV(
  1. double alpha,
  2. double hue,
  3. double saturation,
  4. double value,
)

Implementation

const HSVColour.fromAHSV(this.alpha, this.hue, this.saturation, this.value)
  : assert(alpha >= 0.0),
    assert(alpha <= 1.0),
    assert(hue >= 0.0),
    assert(hue <= 360.0),
    assert(saturation >= 0.0),
    assert(saturation <= 1.0),
    assert(value >= 0.0),
    assert(value <= 1.0);