diff --git a/painting/canvas.js b/painting/canvas.js index 8ca8089..7007732 100644 --- a/painting/canvas.js +++ b/painting/canvas.js @@ -14,7 +14,7 @@ class Canvas { this._ctx.fillStyle = ""; } draw(shape) { - this._ctx.fillStyle = shape._color.rgba(); + this._ctx.fillStyle = shape.color.rgba(); shape.draw(this._ctx); this.resetStyle(); }