FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

ellipseMode()

   
Examples  
ellipseMode(CENTER); 
ellipse(35, 35, 50, 50); 
ellipseMode(CORNER); 
fill(102); 
ellipse(35, 35, 50, 50); 
Description   The origin of the ellipse is modified by the ellipseMode() function. The default configuration is ellipseMode(CENTER), which specifies the location of the ellipse as the center of the shape. The CENTER_RADIUS mode is the same, but the width and height parameters to ellipse() specify the radius of the ellipse, rather than the diameter. The CORNER mode draws the shape from the upper-left corner of its bounding box. The CORNERS mode uses the four parameters to ellipse() to set two opposing corners of the ellipse's bounding box. The parameter must be written in "ALL CAPS" because Processing is a case sensitive language.
   
Syntax  
ellipseMode(MODE)
   
Parameters  
MODE   Either CENTER, CENTER_RADIUS, CORNER, CORNERS.

   
Returns   None
   
Usage   Web & Application
   
Related   ellipse()
 
 






   
 
Updated: Fri Jul 15 16:35:37 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info