Skip to content

Commit 4ffcc79

Browse files
committed
Move circle method above dot support methods
1 parent a0f37cc commit 4ffcc79

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

adafruit_turtle.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,28 @@ def _plot(self, x, y, c):
366366
except IndexError:
367367
pass
368368

369+
def circle(self, radius, extent=None, steps=None):
370+
"""Not implemented
371+
372+
Draw a circle with given radius. The center is radius units left of
373+
the turtle; extent - an angle - determines which part of the circle is
374+
drawn. If extent is not given, draw the entire circle. If extent is not
375+
a full circle, one endpoint of the arc is the current pen position.
376+
Draw the arc in counterclockwise direction if radius is positive,
377+
otherwise in clockwise direction. Finally the direction of the turtle
378+
is changed by the amount of extent.
379+
380+
As the circle is approximated by an inscribed regular polygon, steps
381+
determines the number of steps to use. If not given, it will be
382+
calculated automatically. May be used to draw regular polygons.
383+
384+
:param radius: the radius of the circle
385+
:param extent: the arc of the circle to be drawn
386+
:param steps: how many points along the arc are computed
387+
388+
"""
389+
raise NotImplementedError
390+
369391
def _draw_disk(self, x, y, width, height, r, color, fill=True, outline=True, stroke=1):
370392
"""Draw a filled and/or outlined circle"""
371393
if fill:
@@ -414,28 +436,6 @@ def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
414436

415437
# pylint: enable=too-many-locals, too-many-branches
416438

417-
def circle(self, radius, extent=None, steps=None):
418-
"""Not implemented
419-
420-
Draw a circle with given radius. The center is radius units left of
421-
the turtle; extent - an angle - determines which part of the circle is
422-
drawn. If extent is not given, draw the entire circle. If extent is not
423-
a full circle, one endpoint of the arc is the current pen position.
424-
Draw the arc in counterclockwise direction if radius is positive,
425-
otherwise in clockwise direction. Finally the direction of the turtle
426-
is changed by the amount of extent.
427-
428-
As the circle is approximated by an inscribed regular polygon, steps
429-
determines the number of steps to use. If not given, it will be
430-
calculated automatically. May be used to draw regular polygons.
431-
432-
:param radius: the radius of the circle
433-
:param extent: the arc of the circle to be drawn
434-
:param steps: how many points along the arc are computed
435-
436-
"""
437-
raise NotImplementedError
438-
439439
#pylint:disable=keyword-arg-before-vararg
440440
def dot(self, size=None, color=None):
441441
"""Draw a circular dot with diameter size, using color.

0 commit comments

Comments
 (0)