Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,12 @@ Turtle motion
the turtle; *extent* -- an angle -- determines which part of the circle
is drawn. If *extent* is not given, draw the entire circle. If *extent*
is not a full circle, one endpoint of the arc is the current pen
position. Draw the arc in counterclockwise direction if *radius* is
positive, otherwise in clockwise direction. Finally the direction of the
turtle is changed by the amount of *extent*.
position. If *radius* is negative, the center is to the right of the
turtle instead. The turtle moves forward along the arc if *extent* is
positive and backward if it is negative, so the arc is drawn
counterclockwise if *radius* and *extent* have the same sign, otherwise
clockwise. Finally the turtle turns left by *extent* if *radius* is
positive, otherwise right by *extent*.

As the circle is approximated by an inscribed regular polygon, *steps*
determines the number of steps to use. If not given, it will be
Expand Down
9 changes: 6 additions & 3 deletions Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,9 +2028,12 @@ def circle(self, radius, extent = None, steps = None):
of the turtle; extent - an angle - determines which part of the
circle is drawn. If extent is not given, draw the entire circle.
If extent is not a full circle, one endpoint of the arc is the
current pen position. Draw the arc in counterclockwise direction
if radius is positive, otherwise in clockwise direction. Finally
the direction of the turtle is changed by the amount of extent.
current pen position. If radius is negative, the center is to the
right of the turtle instead. The turtle moves forward along the
arc if extent is positive and backward if it is negative, so the
arc is drawn counterclockwise if radius and extent have the same
sign, otherwise clockwise. Finally the turtle turns left by extent
if radius is positive, otherwise right by extent.

As the circle is approximated by an inscribed regular polygon,
steps determines the number of steps to use. If not given,
Expand Down

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs changes don't need news entries.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Clarify the documentation of :func:`turtle.circle`: the sign of *extent*
also affects whether the arc is drawn clockwise or counterclockwise.
Loading