hue method

Color hue(
  1. int angle
)

Implementation

Color hue(int angle) {
  final hsvColor = HSVColor.fromColor(this);
  final hue = hsvColor.hue;
  final newHue = (hue + angle) % 360;
  return hsvColor.withHue(newHue).toColor();
}