rectMode()
Shape / AttributesDescription
Modifies the location from which rectangles are drawn. Default is CORNER.
Syntax
void rectMode(int mode)
Parameters
| Name | Type | Description |
|---|---|---|
| mode | int | CORNER, CORNERS, CENTER, or RADIUS |
Returns
voidRelated
Under the Hood
From Processing.h:
void rectMode(int mode);
int rectMode, ellipseMode, imageMode;
Under the Hood
From Processing.cpp:
void PApplet::rectMode(int m) {currentRectMode=m;}