Skip to main content

draw_ellipse()

Description#

Draws an ellipse that fits in a rectangle with its top-left corner at x,y and a set width and height.

Syntax#

draw_ellipse(self, x, y, width, height)
draw_ellipse(self, x, y, width, height, fill_in=True)

Parameters#

x: x coordinate of the top-left corner of the enclosing rectangle
y: y coordinate of the top-left corner of the enclosing rectangle
width: width of enclosing rectangle
height: height of enclosing rectangle
fill_in: Boolean that selects if the triangle will be filled in (white). Default to True.

Returns#

None

Example Code#
Python#
#Python code
from zumi.util.screen import Screen
import time
screen=Screen()
screen.draw_ellipse(0,0,100,30,fill_in=True)