Skip to content

Commit 6987754

Browse files
authored
Merge pull request phaserjs#4586 from rexrainbow/master
Set (width,height) of arc/circle to (diameter,diameter)
2 parents e7a6c9f + 382afd6 commit 6987754

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/gameobjects/shape/arc

src/gameobjects/shape/arc/Arc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ var Arc = new Class({
109109
this._iterations = 0.01;
110110

111111
this.setPosition(x, y);
112-
this.setSize(this.geom.radius, this.geom.radius);
112+
113+
var diameter = this.geom.radius * 2;
114+
this.setSize(diameter, diameter);
113115

114116
if (fillColor !== undefined)
115117
{

0 commit comments

Comments
 (0)