import { type ColorMatrixHelpers } from "https://deno.land/x/canvas@v1.4.2/mod.ts";
Methods
concat(outer: ColorMatrix, inner: ColorMatrix): ColorMatrix
Returns a new ColorMatrix that is the result of multiplying outer*inner
identity(): ColorMatrix
Returns an identity ColorMatrix.
postTranslate(): ColorMatrix
Sets the 4 "special" params that will translate the colors after they are multiplied by the 4x4 matrix.
rotated(): ColorMatrix
axis: number,
sine: number,
cosine: number,
Returns a new ColorMatrix that is rotated around a given axis.
scaled(): ColorMatrix
redScale: number,
greenScale: number,
blueScale: number,
alphaScale: number,
Returns a new ColorMatrix that scales the colors as specified.