mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Use faster Size.create().
This commit is contained in:
parent
4dd90b440e
commit
4e1dd90549
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ Path.inject({ statics: new function() {
|
||||||
center = Point.read(arguments, 0, 1);
|
center = Point.read(arguments, 0, 1);
|
||||||
}
|
}
|
||||||
return Path.Oval(new Rectangle(center.subtract(radius),
|
return Path.Oval(new Rectangle(center.subtract(radius),
|
||||||
new Size(radius * 2, radius * 2)));
|
Size.create(radius * 2, radius * 2)));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue