If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

ellipseMode(MODE)

Changes how ellipses are drawn.
  • The default mode (CENTER) uses the first two parameters as the center, and the last two parameters as the width and height.
  • The RADIUS mode is the same, except that the last two parameters specify the radius instead of the diameter.
  • The CORNER mode uses the first two parameters as the upper left corner, and the last two as the width/height.
  • The CORNERS mode uses the first two parameters as the upper left corner, and the last two as the opposite corner.
Parameters:
NameDescription
MODEThe mode, either CORNER, CORNERS, CENTER, or RADIUS. The default is CENTER.

Want to join the conversation?

No posts yet.