Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface CanvasFillStrokeStyles
import { type CanvasFillStrokeStyles } from "https://deno.land/x/canvaseno@v1.0.2/types.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