Ok well anyway it’s strange
Changing the corresponding lines and pressing Ctrl+T
in the Processing editor to auto format the code (handy tip!), I get an error at line 10 saying that there’s a missing curly bracket.
In fact you forgot to close the draw()
function block. (in general when you open a bracket, you need to close it)
This is the corrected code :
void setup() {
size(900, 900);
background(255);
}
void draw() {
for (int x = 0; x < height; x = x+90) {
for (int y = 0; y < width; y = y+90) {
shapeX(x, y, 90, 90, random(255));
}
}
}
void shapeX(float x, float y, float z, float a, float c) {
beginShape();
noStroke();
fill(c);
ellipse(x, y, z+40, a+40);
translate(-58, -58);
noStroke();
fill(c);
rect(x, y, z+25, a+25);
endShape(CLOSE);
}
I don’t think that it’s the result that you want but this is a starting point