mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-09 11:14:06 -04:00
Update examples/ExportSVGTests/Circle Testing.html
This commit is contained in:
parent
981f113652
commit
e0617b3c21
1 changed files with 5 additions and 6 deletions
|
@ -13,23 +13,22 @@
|
|||
initializePath();
|
||||
|
||||
function initializePath() {
|
||||
var topLeft = new Point(-200, -200);
|
||||
var size = new Size(-150, -100);
|
||||
var topLeft = new Point(200, 200);
|
||||
var size = new Size(150, 100);
|
||||
var rectangle = new Rectangle(topLeft, size);
|
||||
var path = new Path.Oval(rectangle);
|
||||
path.fillColor = 'black';
|
||||
|
||||
var topLeft = new Point(-5, -400);
|
||||
var size = new Size(-100, -50);
|
||||
var topLeft = new Point(5, 400);
|
||||
var size = new Size(100, 50);
|
||||
var rectangle = new Rectangle(topLeft, size);
|
||||
var path = new Path.Oval(rectangle);
|
||||
path.fillColor = 'yellow';
|
||||
|
||||
var path = new Path.Circle(new Point(-25, -25), -7);
|
||||
var path = new Path.Circle(new Point(50, 50), 25);
|
||||
path.fillColor = 'red';
|
||||
|
||||
var esvg = new ExportSVG();
|
||||
//esvg.exportProject(paper.project);
|
||||
var output = esvg.exportProject(paper.project);
|
||||
console.log(output);
|
||||
var test = document.getElementById('svg')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue