@thi.ng/rasterize
Version:
Headless 2D shape drawing, filling & rasterization for arbitrary targets/purposes (no canvas required)
4 lines • 311 B
TypeScript
import type { IGrid2D, TypedArray } from "@thi.ng/api";
import type { Shader2D } from "./api.js";
export declare const drawCircle: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, x: number, y: number, r: number, val: P | Shader2D<P>, fill?: boolean) => IGrid2D<T, P>;
//# sourceMappingURL=circle.d.ts.map