Hello, I’m following a tutorial from my tutor and it’s just the start so he made a mistake on purpose for all of the ellipses to fall in to the top left (so that’s not the issue here) but whenever I try to do the exact same code it is saying that x and y can’t be resolved to a variable. His sketch shows up fine and he gets no errors. I’ve written it out twice now and checked it character by character and nothing is different to his. Am I going crazy or is there a reason for this? I’ve found that it happens quite often, I’m not sure if we’re using different versions or something? But I don’t really think that’s the issue.
Table data;
int cols = 40;
int rows = 25;
// 40 wide, 25 down
// determin our rows and columns
void setup(){
size(1000,1000);
background(255);
data = loadTable (“DrugData2.csv”, “header”);
noLoop();
}
void draw(){
// width divided by columns
float gridX = width/cols;
float gridY = height/rows;
noFill();
stroke(0,64);
// for int y = 0, y is less than rows
for (int y = 0; y < rows; y++); {
for (int x = 0; x < cols; x++); {
ellipse(x, y, gridX, gridX);
}
}
}
Thanks for any help!