 |
 |
 |
 |
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() |
|