Interface Color

Hierarchy

Index

Methods

Methods

public brighter(k: number): Color

increase lightness by some exponential factor (gamma)

Parameters

  • k: number

Returns

Color

public darker(k?: number): Color

decrease lightness by some exponential factor (gamma)

Parameters

  • k?: number optional

Returns

Color

public toString(): string

convert the color to a string.

Returns

string