Skip to content

Commit 382afd6

Browse files
committed
Set (width,height) of arc/cicle to (diameter,diameter)
Set (width,height) of arc/cicle to (diameter,diameter), not (radius,radius).
1 parent 9e19c7b commit 382afd6

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)