Skip to main content

draw_circle()

Description#

Draws a circle that fits inside a square with its top-left corner at x,y and a width/height of the circle's diameter.

Syntax#

draw_circle(x, y, diameter)
draw_circle(x, y, diameter, fill_in=True)

Parameters#

x: x coordinate of the top-left corner of the enclosing square
y: y coordinate of the top-left corner of the enclosing square
diameter: diameter of the circle (also the width and height of enclosing square)
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_circle(10,0,20,fill_in=False)