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

x/canvas/src/canvaskit.ts>Color

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
type alias Color
import { type Color } from "https://deno.land/x/canvas@v1.3.0/src/canvaskit.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