Interface IColor

Index

Methods

Methods

public getAlpha(): number

Returns

number

public getSource(): Array<any>

Returns

Array<any>

public overlayWith(otherColor: string): IColor

Parameters

  • otherColor: string

Returns

IColor

public overlayWith(otherColor: IColor): IColor

Parameters

Returns

IColor

public setAlpha(alpha: number): IColor

Parameters

  • alpha: number

Returns

IColor

public setSource(source: Array<any>): any

Parameters

  • source: Array<any>

Returns

any

public toBlackWhite(threshold: any): IColor

Parameters

  • threshold: any

Returns

IColor

public toGrayscale(): IColor

Returns

IColor

public toHex(): string

Returns

string

public toRgb(): string

Returns

string

public toRgba(): string

Returns

string