This commit is contained in:
Maciej Caderek
2022-02-17 03:36:40 +01:00
parent 3095c3b55e
commit 10cea708f0
25 changed files with 326 additions and 115 deletions

View File

@@ -331,6 +331,10 @@ class Board {
}
toImageData() {
return this.ctx.getImageData(0, 0, this.width, this.height);
}
toClampedArray() {
return this.ctx.getImageData(0, 0, this.width, this.height).data;
}

View File

@@ -1,6 +1,6 @@
import { Coords } from "../../types";
const BASE_FONT_SIZE = 20;
const BASE_FONT_SIZE = 24;
const FONT_FAMILY = "Fira Mono";
const drawCoords = (