withHue method

  1. @override
HsiColor withHue(
  1. num hue
)

Returns this HsiColor modified with the provided hue value.

Implementation

@override
HsiColor withHue(num hue) {
  assert(hue >= 0 && hue <= 360);
  return HsiColor(hue, saturation, intensity, alpha);
}