Skip to content

Function: setHue()

ts
function setHue(color, hue): Color;

Defined in: setHue.ts:11

Set the hue value for a color to a specific value.

Parameters

ParameterTypeDescription
colorColorthe color to set the value for
huenumbera number between [0,360] representing hue

Returns

Color

a new color with the new hue value