Function Color.fromHsv

Instantiate a Color given HSV components.

static Color fromHsv (
  int hue,
  float saturation,
  float value
);

Parameters

NameDescription
hue Hue angle, in degrees, in the range 0 through 360.
saturation Saturation percentage in the range 0.0 through 1.0.
value Value percentage in the range 0.0 through 1.0.

Throws

A RangeError if any of the given color components are outside their respective ranges.