This commit is contained in:
Kim Ravn Hansen
2025-10-04 16:09:59 +02:00
parent 4a1439f14d
commit 8fb279cdbb
6 changed files with 96 additions and 475 deletions

View File

@@ -50,6 +50,14 @@ export class AsciiWindow {
this.initializeCanvaas();
}
fill(char = " ", color = "#000") {
for (let y = 0; y < this.height; y++) {
for (let x = 0; x < this.width; x++) {
this.put(x, y, char, color);
}
}
}
/**
* Create the html elements that make up the canvas,
* as well as a buffer that holds a copy of the data