Skip to content

Function: rotate()

ts
function rotate(hex, degrees): string;

Rotates the hue of a hex color by degrees.

Parameters

ParameterType
hexstring
degreesnumber

Returns

string

Example

ts
rotate('#336699', 90) // => '#336633'

Since

1.0.0

Released under the MIT License.