| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### ellipseMode()
Examples |  |
    ellipseMode(CENTER_DIAMETER);
    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 ellipse mode is ellipseMode(CORNER), which specifies the location of the ellipse to be the upper left bounding box enclosing the shape. The ellipseMode(CENTER_DIAMETER) function call draws the shape from its center point. The parameter must written in "ALL CAPS" because Processing is a case sensitive language.
Syntax |  |
    ellipseMode(MODE)
Parameters |  |
MODE |  | Either CORNER, CORNERS, CENTER_DIAMETER, or CENTER_RADIUS.
Returns |  | None
Usage |  | Web & Application
Related |  | ellipse()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |