export svg issue
in
Contributed Library Questions
•
4 months ago
hi there.
i've been looking in the forum for thread related with this and i found it. but none of the responses were able to help me.
i would like to export a .svg file by using the geomerative library but the example i've found, i guess is made for an older version of processing.
what should i change in this code in way to get it working on processing 2.0?
thanks in advance
i've been looking in the forum for thread related with this and i found it. but none of the responses were able to help me.
i would like to export a .svg file by using the geomerative library but the example i've found, i guess is made for an older version of processing.
what should i change in this code in way to get it working on processing 2.0?
- import processing.xml.*;
- import processing.opengl.*;
- import geomerative.*;
- size(800, 600, P2D);
- smooth();
- // VERY IMPORTANT: Allways initialize the library before using it
- RG.init(this);
- /*
- RSVG svg = new RSVG();
- RGroup grp = svg.toGroup("tiger.svg");
- String strSvg = svg.fromGroup(grp);
- String[] lstStr = split(strSvg, "\n");
- saveStrings("test.svg", lstStr);
- */
- RShape grp = RG.loadShape("Lion.svg");
- RG.saveShape("test.svg", grp);
- exit();
thanks in advance
1