withHue method

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

Returns this HspColor modified with the provided hue value.

Implementation

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