mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-14 06:00:53 -04:00
Merge Path.Rectangle and Path.RoundRectangle.
This commit is contained in:
parent
922b9b5bd0
commit
9efbc288a1
14 changed files with 65 additions and 69 deletions
|
@ -38,7 +38,7 @@
|
|||
var size4 = new Size(100, 100);
|
||||
var rectangle4 = new Rectangle(point4, size4);
|
||||
var cornerSize4 = new Size(30, 30);
|
||||
var path4 = new Path.RoundRectangle(rectangle4, cornerSize4);
|
||||
var path4 = new Path.Rectangle(rectangle4, cornerSize4);
|
||||
path4.strokeColor= 'yellow';
|
||||
path4.fillColor='purple';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
circle.scale(0.5, 1);
|
||||
circle.rotate(40);
|
||||
|
||||
var rect = new Path.RoundRectangle(250, 20, 200, 300, 40, 20);
|
||||
var rect = new Path.Rectangle(250, 20, 200, 300, 40, 20);
|
||||
rect.fillColor = 'yellow';
|
||||
rect.rotate(-20);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue