Interface LABColor

Hierarchy

Index

Properties

Methods

Properties

public a: number

a-dimension

public b: number

b-dimension

public l: number

lightness

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 rgb(): RGBColor

convert from LAB to RGB.

Returns

RGBColor

public toString(): string

convert the color to a string.

Returns

string