mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Update examples/ExportSVGTests/Text Testing.html
This commit is contained in:
parent
b2c4d1b6d7
commit
0efcaade4b
1 changed files with 1 additions and 6 deletions
|
@ -26,9 +26,6 @@
|
||||||
center = new Point(100,100);
|
center = new Point(100,100);
|
||||||
var path2 = new Path.Circle(center,radius);
|
var path2 = new Path.Circle(center,radius);
|
||||||
path2.strokeColor = 'black';
|
path2.strokeColor = 'black';
|
||||||
console.log(path2.getSegments());
|
|
||||||
//copy = path2.clone();
|
|
||||||
//copy.strokeColor = 'blue';
|
|
||||||
point = new Point(120,100);
|
point = new Point(120,100);
|
||||||
path2.shear(.5, .5);
|
path2.shear(.5, .5);
|
||||||
colors = ['red', 'blue', 'green', 'orange'];
|
colors = ['red', 'blue', 'green', 'orange'];
|
||||||
|
@ -36,12 +33,10 @@
|
||||||
var p = path2.segments[i].point;
|
var p = path2.segments[i].point;
|
||||||
var c = new Path.Circle(p, 2);
|
var c = new Path.Circle(p, 2);
|
||||||
c.fillColor = colors[i];
|
c.fillColor = colors[i];
|
||||||
}
|
}
|
||||||
console.log(path2.segments);
|
|
||||||
|
|
||||||
var esvg = new ExportSVG();
|
var esvg = new ExportSVG();
|
||||||
var output = esvg.exportProject(paper.project);
|
var output = esvg.exportProject(paper.project);
|
||||||
//console.log(output);
|
|
||||||
var test = document.getElementById('svg')
|
var test = document.getElementById('svg')
|
||||||
test.innerHTML = "";
|
test.innerHTML = "";
|
||||||
test.appendChild (output);
|
test.appendChild (output);
|
||||||
|
|
Loading…
Reference in a new issue