@thi.ng/rasterize
Version:
Headless 2D shape drawing, filling & rasterization for arbitrary targets/purposes (no canvas required)
5 lines • 300 B
TypeScript
import type { IGrid2D } from "@thi.ng/api";
import type { Shader2D } from "./api.js";
export declare const isInBounds2D: ({ size }: IGrid2D<any, any>, x: number, y: number) => boolean;
export declare const ensureShader2D: <T>(val: T | Shader2D<T>) => Shader2D<T>;
//# sourceMappingURL=checks.d.ts.map