mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 08:31:01 +00:00
Merge pull request #4586 from rexrainbow/master
Set (width,height) of arc/circle to (diameter,diameter)
This commit is contained in:
commit
69877548c9
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ var Arc = new Class({
|
||||||
this._iterations = 0.01;
|
this._iterations = 0.01;
|
||||||
|
|
||||||
this.setPosition(x, y);
|
this.setPosition(x, y);
|
||||||
this.setSize(this.geom.radius, this.geom.radius);
|
|
||||||
|
var diameter = this.geom.radius * 2;
|
||||||
|
this.setSize(diameter, diameter);
|
||||||
|
|
||||||
if (fillColor !== undefined)
|
if (fillColor !== undefined)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue