ellipse()

Examples

ellipse() example
void draw() {
  ellipse(56, 46, 55, 55);
}

Description

Draws a circle to the screen. The name of this function is 'ellipse', but it's not possible to draw an ellipse (oval) with Pebble SDK. If width is not equivalent to height, the circle's width and height are the average of width and height. By default, the first two parameters set the location, and the third and fourth parameters set the shape's width and height. The origin may be changed with the ellipseMode() function.

Syntax

ellipse(a, b, c, d)

Parameters

a float: x-coordinate of the circle
b float: y-coordinate of the circle
c float: width of the circle by default
d float: height of the circle by default

Returns

void

Related

ellipseMode()
circle()

Back to index