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

x/evt/lib/types/index.ts>dom.CanvasFillStrokeStyles

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CanvasFillStrokeStyles
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { CanvasFillStrokeStyles } = dom;

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): CanvasPattern | null
createRadialGradient(
x0: number,
y0: number,
r0: number,
x1: number,
y1: number,
r1: number,
): CanvasGradient