circle bugfix

This commit is contained in:
Blue 2018-11-19 13:00:39 +03:00
parent 366c0eb977
commit 6a11ebf440
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class Circle extends Shape {
this._r = r;
}
draw(ctx) {
ctx.beginPath();
ctx.arc(this._x, this._y, this._r, 0, Math.PI * 2);
ctx.fill();
}