typo
This commit is contained in:
parent
28b335619d
commit
2f21b26c64
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue