The most recent release of Candy doesn't draw lines. It only seems to work with connected shapes. Here is the sample code:
Code:import proxml.*;
import candy.*;
SVG moo, moo2;
void setup(){
size(800, 800);
moo = new SVG("line.svg", this);
moo2 = new SVG("shape.svg", this);
}
void draw(){
moo.draw(); // Doesn't draw
moo2.draw(); // Draws
}
And here is the file data for shape.svg:
Code:<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
width="165" height="179" viewBox="-0.279 -0.988 165 179" enable-background="new -0.279 -0.988 165 179" xml:space="preserve">
<defs>
</defs>
<path fill="none" stroke="#000000" d="M43.055,177.012c0,0,55.005-31.071-19.333-84c-83.333-59.333,80.667-151.333,130-40.667
c0,0,36,66-30.667,65.333L43.055,177.012z"/>
</svg>
Here's the file for line.svg:
Code:<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg version="1.1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
width="165" height="178" viewBox="-0.612 -0.321 165 178" enable-background="new -0.612 -0.321 165 178" xml:space="preserve">
<defs>
</defs>
<path fill="none" stroke="#000000" d="M43.055,177.012c0,0,55.005-31.071-19.333-84c-83.333-59.333,80.667-151.333,130-40.667
c0,0,36,66-30.667,65.333"/>
</svg>