mirror of
https://git.sfja.dk/sfja/h6-logicirc.git
synced 2025-05-16 01:08:07 +01:00
11 lines
306 B
TypeScript
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;
|
|
}
|