circle bugfix
This commit is contained in:
parent
366c0eb977
commit
6a11ebf440
@ -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…
Reference in New Issue
Block a user