Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/shapes_plus/mod.ts>Canvas#readPixels

Used canvas library to make shapes
Latest
method Canvas.prototype.readPixels
Re-export
import { Canvas } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.ts";

Read pixels from the canvas into a buffer.

Parameters

optional
x = [UNSUPPORTED]
optional
y = [UNSUPPORTED]
optional
width: number
optional
height: number
optional
into: Uint8Array
optional
colorSpace: ColorSpace = [UNSUPPORTED]