Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvas/mod.ts>SkColorMatrix

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
type alias SkColorMatrix
import { type SkColorMatrix } from "https://deno.land/x/canvas@v1.0.0/mod.ts";

An SkColorMatrix is a 4x4 color matrix that transforms the 4 color channels with a 1x4 matrix that post-translates those 4 channels. For example, the following is the layout with the scale (S) and post-transform (PT) items indicated. RS, 0, 0, 0 | RPT 0, GS, 0, 0 | GPT 0, 0, BS, 0 | BPT 0, 0, 0, AS | APT

definition: Float32Array