getRotatedHue

fun getRotatedHue(sourceColorHct: Hct, hues: DoubleArray, rotations: DoubleArray): Double

Given a set of hues and set of hue rotations, locate which hues the source color's hue is between, apply the rotation at the same index as the first hue in the range, and return the rotated hue.

Return

Color's hue with a rotation applied.

Parameters

sourceColorHct

The color whose hue should be rotated.

hues

A set of hues.

rotations

A set of hue rotations.