Skip to main content
Module

x/colormath/mod.ts>hue

A color conversion and color manipulation library written in typescript for Node.js, Deno and Browser 🎨.
Latest
function hue
import { hue } from "https://deno.land/x/colormath@1.2.4/mod.ts";

Rotates the hue variable by provided degree.

Parameters

color: ColorValue

The [r, g, b] array or hex string.

optional
value: number

The degree the hue variable to be rotated. Value ranges from 0 to 360. Default value is 30.