Module

x/canvas/mod.ts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface CanvasFillStrokeStyles
import { type CanvasFillStrokeStyles } from "https://deno.land/x/canvas@v1.0.0/mod.ts";

Properties

fillStyle: string | CanvasGradient | CanvasPattern
strokeStyle: string | CanvasGradient | CanvasPattern

Methods

createLinearGradient(
x0: number,
y0: number,
x1: number,
y1: number,
): CanvasGradient
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null
createRadialGradient(
x0: number,
y0: number,
r0: number,
x1: number,
y1: number,
r1: number,
): CanvasGradient