restore color selection

This commit is contained in:
2022-12-20 12:32:01 +01:00
parent d1fc3aec7c
commit 7fb9ed8958
2 changed files with 20 additions and 6 deletions

View File

@ -121,7 +121,7 @@
drawCanvas(board, width, height) {
const d = this.cellProperties.size;
// bool to RGBA colors
const img = boardToPic(board, width, height);
const img = boardToPic(board, width, height, this.cellProperties);
// rescale and draw
this.ctx.save();
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);