This commit is contained in:
Blue 2018-11-18 21:20:01 +03:00
parent 28b335619d
commit 2f21b26c64
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Canvas {
this._ctx.fillStyle = ""; this._ctx.fillStyle = "";
} }
draw(shape) { draw(shape) {
this._ctx.fillStyle = shape._color.rgba(); this._ctx.fillStyle = shape.color.rgba();
shape.draw(this._ctx); shape.draw(this._ctx);
this.resetStyle(); this.resetStyle();
} }