From 2f21b26c64d32b7e3d08c89b36318d1ca8185955 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 18 Nov 2018 21:20:01 +0300 Subject: [PATCH] typo --- painting/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }