UNPKG

modern-canvas

Version:

A JavaScript WebGL rendering engine. only the ESM.

26 lines (25 loc) 726 B
import { Matrix } from './Matrix'; import { Matrix4 } from './Matrix4'; import { Vector4 } from './Vector4'; /** * Matrix4(4x5) * * | r0 | g0 | b0 | a0 | tr | * | r1 | g1 | b1 | a1 | tg | * | r2 | g2 | b2 | a2 | tb | * | r3 | g3 | b3 | a3 | ta | */ export declare class ColorMatrix extends Matrix { constructor(array?: number[]); hueRotate(angle?: number): this; saturate(amount?: number): this; brightness(amount?: number): this; contrast(amount?: number): this; invert(amount?: number): this; sepia(amount?: number): this; opacity(amount?: number): this; grayscale(amount?: number): this; multiply(target: number[]): this; toMatrix4(): Matrix4; toVector4(): Vector4; }