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

x/shapes_plus/mod.ts>Shapes

Used canvas library to make shapes
Latest
class Shapes
import { Shapes } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.ts";

Constructors

new
Shapes(options?: ShapesOptions)

Methods

toBuffer(mimeType?: "jpeg" | "png" | "webp", quality?: number): Uint8Array
toSave(
path: string,
mimeType?: "jpeg" | "png" | "webp",
quality?: number,
)