i've writen this code, and i cannot use rotate, it says that rotate isn't possible with this render, can somebody explain me why?
Code:
PShape s;
float xplus = 0.01;
float yplus = 0.01;
float xx = random(0, 0.05);
float yy = random(0, 10);
void setup(){
size(800,600);
frameRate(10);
}
void draw(){
float x = noise(xx)*width;
float y = noise(yy)*height;
xx += xplus;
yy += yplus;
String[] shapeNames = { "1.svg", "2.svg", "3.svg","4.svg", "5.svg", "6.svg", "7.svg", "8.svg", "9.svg","10.svg", "11.svg"};
PShape[] shapes = new PShape[shapeNames.length];
for (int s = 0; s < shapes.length; s++)
shapes[s] = loadShape(shapeNames[s]);
PShape shapeToDraw = shapes[int(random(shapes.length))];
float r = random(255);
float g = random(255);
float b = random(255);
float prop = random(150);
shapeToDraw.disableStyle();
noStroke();
float x2 = random(width);
float y2 = random(height);
fill(0,g,0,200);
shape(shapeToDraw, x,y);
ellipse(x2,y2,10,10);
pushMatrix();
float rot1 = random(5);
float rot2 = random(5);
float rot3 = random(5);
float rot4 = random(5);
rotate(rot1,rot2,rot3,rot4);
popMatrix();
}