size(200,200);
background(255);
int y = 0;
while (________)  {
  stroke(0);
  line(_______,_______,_______,_______);
  y =  ________  ;
}
Example
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Exercise 6-1a

size(200,200); 
background(255); 
int y = 0; 

while (y < height) { 
  stroke(0);
  line(0,y,width,y);  
  y = y + 10;
} 
  • Anonymous

    Hi, I did the exercise 6.1b in Learning Processing. However, when I click “Run”, nothing happened. The window is blank. Was there something wrong with my code?  How can I solve this  problem? Thanks!Here is my code:

    size(200,200);
    background(255);
    float w=200; 
    while(w<=20){ 
     fill(w);   
    ellipse(100,100,w,w); 
      w=w-20;
     }

  • yucef

    I guessed 200 instead of width. Works the same.