UNPKG

@thi.ng/rasterize

Version:

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

9 lines 699 B
import type { IGrid2D, Nullable, TypedArray } from "@thi.ng/api"; import type { Shader2D } from "./api.js"; /** @internal */ export declare const __draw2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, val: P | Shader2D<P>) => IGrid2D<T, P>; /** @internal */ export declare const __drawSolid2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, val: P) => IGrid2D<T, P>; /** @internal */ export declare const __drawShader2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, shader: Shader2D<P>) => IGrid2D<T, P>; //# sourceMappingURL=draw.d.ts.map