System.err.println("Could not parse transform " + matrixStr);
return null;
}
float[] m = PApplet.parseFloat(PApplet.splitTokens(pieces[2]));
if (pieces[1].equals("matrix")) {
<BUG>return m;
} else if (pieces[1].equals("translate")) {</BUG>
float tx = m[0];
float ty = (m.length == 2) ? m[1] : m[0];
<BUG>return new float[] { 1, 0, tx,  0, 1, ty };
</BUG>
} else if (pieces[1].equals("scale")) {

System.err.println("Could not parse transform " + matrixStr);
return null;
}
float[] m = PApplet.parseFloat(PApplet.splitTokens(pieces[2]));
if (pieces[1].equals("matrix")) {
return new PMatrix2D(m[0], m[2], m[4], m[1], m[3], m[5]);
} else if (pieces[1].equals("translate")) {
float tx = m[0];
float ty = (m.length == 2) ? m[1] : m[0];
return new PMatrix2D(1, 0, tx, 0, 1, ty);
} else if (pieces[1].equals("scale")) {
