We are about to switch to a new forum software. Until then we have removed the registration on this forum.
(sorry for my english) well, i'm like a newbie in this and i was trying to make a sketch of my own, but had problems when i put in a nested loop, the code its not running, the console don't show me any error but don't show me the sketch. I tried with a example sketch that had a nested loop but the code run without problems. so, this is the code, maybe there is something wrong with it:
size(300, 600);
background(0);
fill(255);
noStroke();
for (int i = 150; i <= height; i += 200) {
for (int r = 200; r <= width; r -= 50) {
ellipse(150, i, r, r);
}
}
help me please!!!
Comments
the code never finishes because r starts at 200 and goes downwards so
r <= width
is always trueChange it to
r > 0