rectMode()

Set how the (x, y) and size arguments of rect() / square() are interpreted.

Follows rectMode() in p5.js. Resets to CORNER at the start of each fabDraw(); scope a change with push() / pop().

Parameters

Name Type Description
mode string CORNER, CORNERS, CENTER, or RADIUS.

Examples

Syntax

fab.rectMode(mode)