Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
type alias SkColorMatrix
import { type SkColorMatrix } from "https://deno.land/x/canvaseno@v1.0.2/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