restore color selection

This commit is contained in:
Gator
2022-12-20 12:32:01 +01:00
parent 7500c6ac1f
commit 44d749ac4e
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);