h6-logicirc/src/renderer.ts
2025-05-06 17:36:53 +02:00

11 lines
306 B
TypeScript

type N = number;
export interface Renderer {
get width(): N;
get height(): N;
clear(color: string): void;
fillRect(x: N, y: N, w: N, h: N, color: string): void;
fillCirc(x: N, y: N, radius: N, color: string): void;
putImageData(data: ImageData, x: N, y: N, hash?: bigint): void;
}