} else if (pieces[1].equals("rotate")) {
float angle = m[0];
if (m.length == 1) {
float c = PApplet.cos(angle);
float s = PApplet.sin(angle);
<BUG>return new float[] { c, -s, 0,  s, c, 0 };
</BUG>
} else if (m.length == 3) {
PMatrix2D mat = new PMatrix2D(0, 1, m[1],  1, 0, m[2]);
mat.rotate(m[0]);

} else if (pieces[1].equals("rotate")) {
float angle = m[0];
if (m.length == 1) {
float c = PApplet.cos(angle);
float s = PApplet.sin(angle);
return new PMatrix2D(c, -s, 0, s, c, 0);
} else if (m.length == 3) {
PMatrix2D mat = new PMatrix2D(0, 1, m[1],  1, 0, m[2]);
mat.rotate(m[0]);
