can't run this code in processing 2.2.1 for linux Ubuntu 14.04 32 bits

edited January 2015 in Questions about Code

(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!!!

Tagged:

Comments

Sign In or Register to comment.