restore color selection
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user