Global — Documentation

Methods

inRange(value, min, max) → {bool}

Check if a value is in range.

Source:
Parameters:
Name Type Description
value number

The number you want to check.

min number

Minimum acceptable value for the number.

max number

Maximum acceptable value for the number.

Returns:
Type:
bool

Returns true if the number is in range.

toString(type, array) → {string}

Convert a given array into a string with a valid color value in desired format.

Source:
Parameters:
Name Type Description
type string

Specify the color type like rgb, hsl

array array

Different array elements contain respective values.

Returns:
Type:
string

The color representation in desired format as a string.