size(200,200);  
background(255); 
float w = ________;  
while (________)  {   
  stroke(0);  
  fill(________);  
  ellipse(_______,_______,_______,_______);  
  __________20;  
}
Example
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Exercise 6-1b

size(200,200); 
background(255); 
smooth();

float w = width; 
while (w > 0) { 
  stroke(0); 
  fill(w); 
  ellipse(width/2,height/2,w,w); 
  w = w - 20; 
} 


»

No comments yet.

Leave a comment