Skip to main content

draw_arc()

Description#

Draws an arc within the boundaries of points x1,y1, and x2,y2 at the specified starting and ending angles.

Syntax#

draw_arc(x1, y1, x2, y2, start_ang, end_ang)
draw_arc(x1, y1, x2, y2, start_ang, end_ang,fill_in=True)

Parameters#

x1: x coordinate of top-left corner for the rectangle enclosing the arc
y1: y coordinate of top-left corner for the rectangle enclosing the arc
x2: x coordinate of bottom-right corner for the rectangle enclosing the arc
y2: y coordinate of bottom-right corner for the rectangle enclosing the arc
start_ang: starting arc angle
end_ang: ending arc angle
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
screen=Screen()
screen.draw_arc(0,0,50,50,-180,0)