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

x/canvas/src/canvas.ts>Color

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

An Color is represented by 4 floats, typically with values between 0 and 1.0. In order, the floats correspond to red, green, blue, alpha.

definition: Float32Array