rectMode()

Shape / Attributes

Description

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

Syntax

void rectMode(int mode)

Parameters

NameTypeDescription
modeintCORNER, CORNERS, CENTER, or RADIUS

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...