addHue method

HSLuvColor addHue(
  1. double add, [
  2. int cycle = 360
])

Returns a copy of this color with hue being added via the add parameter. It also accepts a cycle parameter, so it circles back when larger than it (default = 360).

Implementation

HSLuvColor addHue(double add, [int cycle = 360]) {
  return HSLuvColor.fromHSL((hue + add) % cycle, saturation, lightness);
}