Skip to content

Class: ColorGradient

Constructors

Methods

Constructors

constructor

new ColorGradient(array): ColorGradient

Parameters

NameType
arrayColor[]

Returns

ColorGradient

Defined in

src/math/ColorGradient.ts:6

Methods

getColor

getColor(p): Color

Parameters

NameType
pnumber

Returns

Color

Defined in

src/math/ColorGradient.ts:10