Classes

Colour

Methods

(static) blend(color1, color2)

Blend two colours together.

Parameters
Name Type Description
color1 number
color2 number

(static) gen() → {string}

Generator example

Yields:

A string object, which may be empty

Type: 
string

(static) darken(color, shade)

Darkens a color.

Parameters
Name Type Description
color number
shade number