@kcuf/mere-color
Version:
Mere color utils for generating, manipulation, a11y purposes.
11 lines (10 loc) • 334 B
JavaScript
import { manipulateHsl, hslShiftHue } from '../util';
/**
* Rotate hue of a color, returning the new color in the original notation normalized.
*/
export default function rotate(color, delta, unit) {
return manipulateHsl(color, function (hsl) {
return hslShiftHue(hsl, delta, unit);
});
}
//# sourceMappingURL=rotate.js.map