UNPKG

@thi.ng/rasterize

Version:

Headless 2D shape drawing, filling & rasterization for arbitrary targets/purposes (no canvas required)

4 lines 318 B
import type { IGrid2D, TypedArray } from "@thi.ng/api"; import type { Shader2D } from "./api.js"; export declare const drawRect: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, x: number, y: number, w: number, h: number, val: P | Shader2D<P>, fill?: boolean) => IGrid2D<T, P>; //# sourceMappingURL=rect.d.ts.map