circle bugfix
This commit is contained in:
parent
366c0eb977
commit
6a11ebf440
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ class Circle extends Shape {
|
||||||
this._r = r;
|
this._r = r;
|
||||||
}
|
}
|
||||||
draw(ctx) {
|
draw(ctx) {
|
||||||
|
ctx.beginPath();
|
||||||
ctx.arc(this._x, this._y, this._r, 0, Math.PI * 2);
|
ctx.arc(this._x, this._y, this._r, 0, Math.PI * 2);
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue