* Render SVG directly in the paint method of a subclass of PNode
* Render SVG into an image and display that image in a PImage node
* Render SVG into an Swing component and display that component via PSwing
* Render SVG by mapping SVG elements to PNodes (PLine, PPath, etc.)
All of the first three can all be implemented with
Apache Batik
http://xmlgraphics.apache.org/batik/
and with
SVG Salamander
https://svgsalamander.dev.java.net/
The second with
Candy SVG Import
http://processing.org/reference/libraries/candy/index.html
There might be others.
Perhaps it might be useful to document and provide examples of all of
these before we get too far on the fourth option?
michael
I fully agree. Implementing proper SVG coverage is both out of scope (a
terrible lot of work) and a bit off-topic for piccolo2d. And there are
some libs that do this yet.
I want to make an experiment and see if a simple import is feasible and
how it could be done. Most out of curiosity. The advantage of import
over rendering might be that the result is PNodes you can attach event
handlers to and change the nodes at runtime. The svg then defines the
look of the zui.
I'll put all the options you mentioned in the wiki.
M