hey phi
yeah i've been checking them out a bit, as well as elsewhere in the forums.
to complicate things it looks as though the lines info is a layer down so I have to call getChild twice over, or else I get null pointer exceptions the getParams function... typical!
so now I have this:
- palace = loadShape("ZAKROS.svg");
- int totalLines = palace.getChildCount();
-
-
- for (int i=0; i < totalLines; i++) {
- PShape holding = palace.getChild(i);
- PShape inside = holding.getChild(0);
- float[] params = inside.getParams();
- print(params[0]);
- print(",");
- println(params[3]);
- }
the param values; are these vectors that I can use to draw a line?