toColor method

Color toColor()

Returns this color in RGB.

Implementation

Color toColor() {
  final double chroma = saturation * value;
  final double secondary = chroma * (1.0 - (((hue / 60.0) % 2.0) - 1.0).abs());
  final double match = value - chroma;

  return _colorFromHue(alpha, hue, chroma, secondary, match);
}