UNPKG

@kcuf/mere-color

Version:

Mere color utils for generating, manipulation, a11y purposes.

8 lines 327 B
import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import getAngleUnitValue from './get-angle-unit-value'; export default function hslShiftHue(hsl, delta, unit) { return _objectSpread(_objectSpread({}, hsl), {}, { h: hsl.h + delta * getAngleUnitValue(unit) }); } //# sourceMappingURL=hsl-shift-hue.js.map