Class ColorMatrix

Index

Constructor methods

Methods

Constructor methods

constructor(brightness?: number, contrast?: number, saturation?: number, hue?: number): ColorMatrix

Parameters

  • brightness?: number optional
  • contrast?: number optional
  • saturation?: number optional
  • hue?: number optional

Returns

ColorMatrix

Methods

public adjustBrightness(value: number): ColorMatrix

Parameters

  • value: number

Returns

ColorMatrix

public adjustColor(brightness: number, contrast: number, saturation: number, hue: number): ColorMatrix

Parameters

  • brightness: number
  • contrast: number
  • saturation: number
  • hue: number

Returns

ColorMatrix

public adjustContrast(value: number): ColorMatrix

Parameters

  • value: number

Returns

ColorMatrix

public adjustHue(value: number): ColorMatrix

Parameters

  • value: number

Returns

ColorMatrix

public adjustSaturation(value: number): ColorMatrix

Parameters

  • value: number

Returns

ColorMatrix

public clone(): ColorMatrix

Returns

ColorMatrix

public concat(matrix?: Array<number>): ColorMatrix

Parameters

  • matrix?: Array<number> optional

Returns

ColorMatrix

public concat(matrix: ColorMatrix): ColorMatrix

Parameters

Returns

ColorMatrix

public copyMatrix(matrix?: Array<number>): ColorMatrix

Parameters

  • matrix?: Array<number> optional

Returns

ColorMatrix

public copyMatrix(matrix: ColorMatrix): ColorMatrix

Parameters

Returns

ColorMatrix

public reset(): ColorMatrix

Returns

ColorMatrix

public toArray(): Array<number>

Returns

Array<number>

public toString(): string

Returns

string