ellipseMode()

Set how the (x, y) and size arguments of ellipse() / circle() / ngon() are interpreted.

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

Parameters

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

Examples

Syntax

fab.ellipseMode(mode)