shapeMode()

Shape / Loading & Displaying

Description

Modifies the location from which shapes are drawn. Default is CORNER.

Syntax

void shapeMode(int mode)

Parameters

NameTypeDescription
modeintCORNER, CORNERS, or CENTER

Returns

void

Related

Under the Hood

From Processing.h:

void shapeMode(int mode);

Under the Hood

From Processing.cpp:

void PApplet::shapeMode(int mode){ shapeDrawMode=mode; }