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;
} 


»

No comments yet.

Leave a comment