withHue

fun withHue(newHue: Double): Hct

Set the hue of this color. Chroma may decrease because chroma has a different maximum for any given hue and tone.

Parameters

newHue

0 <= newHue < 360; invalid values are corrected.