Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_chart/deps.ts>ColorMatrixHelpers

A graph library for deno. Inspired by Chart.js. A simpler implementation for basic bar graphs that save to an image.
Latest
interface ColorMatrixHelpers
import { type ColorMatrixHelpers } from "https://deno.land/x/deno_chart@1.1.0/deps.ts";

Methods

concat(outer: SkColorMatrix, inner: SkColorMatrix): SkColorMatrix

Returns a new SkColorMatrix that is the result of multiplying outer*inner

identity(): SkColorMatrix

Returns an identity SkColorMatrix.

postTranslate(
dr: number,
dg: number,
db: number,
da: number,
): SkColorMatrix

Sets the 4 "special" params that will translate the colors after they are multiplied by the 4x4 matrix.

rotated(
axis: number,
sine: number,
cosine: number,
): SkColorMatrix

Returns a new SkColorMatrix that is rotated around a given axis.

scaled(
redScale: number,
greenScale: number,
blueScale: number,
alphaScale: number,
): SkColorMatrix

Returns a new SkColorMatrix that scales the colors as specified.