@@ -356,14 +356,14 @@ Move and draw
356356 :param y: a number or ``None ``
357357 :param fill_gap: a boolean
358358
359- Instantly move the turtle to an absolute position. Unlike :func: ` goto `, no
360- line is drawn. If *x * or *y * is not given, that coordinate is kept as it
361- is. The turtle's heading does not change.
359+ Teleport, or instantly move, the turtle to an absolute position. Unlike
360+ :func: ` goto `, no line is drawn. If *x * or *y * is not given, that coordinate
361+ is kept as it is . The turtle's heading does not change.
362362
363363 If the turtle is filling a shape, the shape drawn so far is finished and
364- filled before the jump , and filling starts again at the new position. Pass
365- ``fill_gap=True `` to keep filling one shape instead. The jump then counts
366- as an edge of the shape, as it would with :func: `goto `.
364+ filled before teleporting , and filling starts again at the new position.
365+ Pass ``fill_gap=True `` to keep filling one shape instead. The teleport then
366+ counts as an edge of the shape, as it would with :func: `goto `.
367367
368368 .. doctest ::
369369 :skipif: _tkinter is None
@@ -626,7 +626,7 @@ Move and draw
626626 Return or set the turtle's speed. If *speed * is not given, return the
627627 current speed. Otherwise set the turtle's speed to an integer from 0 to 10.
628628 If *speed * is a number greater than 10 or smaller than 0.5, the speed is
629- set to 0. A speed string is mapped to a speed value as follows :
629+ set to 0. You can also use these names instead of numbers :
630630
631631 * "fastest": 0
632632 * "fast": 10
@@ -816,24 +816,24 @@ Drawing state
816816 pd()
817817 down()
818818
819- Pull the pen down . The turtle draws a line when it moves.
819+ Lower the pen. The turtle draws a line when it moves.
820820
821821
822822.. function :: penup()
823823 pu()
824824 up()
825825
826- Pull the pen up . The turtle does not draw when it moves.
826+ Lift the pen. The turtle does not draw when it moves.
827827
828828
829829.. function :: pensize(width=None)
830830 width(width=None)
831831
832832 :param width: a positive number or ``None ``
833833
834- Set the line thickness to * width * or return it . If *width * is not given,
835- return the current pensize. If resizemode is set to "auto" and the turtle
836- shape is a polygon, that polygon is drawn with the same line thickness.
834+ Return or set the line thickness. If *width * is not given, return the
835+ current pensize. If resizemode is set to "auto" and the turtle shape is a
836+ polygon, that polygon is drawn with the same line thickness.
837837
838838 .. doctest ::
839839 :skipif: _tkinter is None
@@ -1201,11 +1201,11 @@ Appearance
12011201
12021202 :param name: a string or ``None ``
12031203
1204- Set the turtle shape to the shape with the given * name * . If *name * is not
1205- given, return the name of the current shape. The shape must exist in the
1204+ Set the turtle shape to the named shape . If *name * is not given, return the
1205+ name of the current shape. The shape must exist in the
12061206 :class: `TurtleScreen `'s shape dictionary. Initially there are the following
1207- polygon shapes: "arrow", "turtle", "circle", "square", "triangle" and
1208- "classic". To add shapes, see the :class: `Screen ` method :func: `register_shape `.
1207+ shapes: "arrow", "turtle", "circle", "square", "triangle" and "classic". To
1208+ add shapes, see the :class: `Screen ` method :func: `register_shape `.
12091209
12101210 .. doctest ::
12111211 :skipif: _tkinter is None
@@ -1253,10 +1253,16 @@ Appearance
12531253 Return or set the turtle's stretch factors and outline width. If no
12541254 arguments are given, return the current values. Otherwise set resizemode to
12551255 "user", so that the turtle is displayed stretched according to its stretch
1256- factors. *stretch_wid * is the stretch factor perpendicular to the turtle's
1257- heading and *stretch_len * the stretch factor in the direction of its
1258- heading. If only *stretch_wid * is given, *stretch_len * is set to the same
1259- value. *outline * is the width of the shape's outline.
1256+ factors:
1257+
1258+ - *stretch_wid *: the stretch factor perpendicular to the turtle's heading
1259+ - *stretch_len *: the stretch factor in the direction of the turtle's
1260+ heading
1261+ - *outline *: the width of the shape's outline
1262+
1263+ For example, ``shapesize(2, 1) `` makes the turtle twice as wide without
1264+ changing its length. If only *stretch_wid * is given, *stretch_len * is set to
1265+ the same value.
12601266
12611267 .. doctest ::
12621268 :skipif: _tkinter is None
@@ -1520,8 +1526,8 @@ Special Turtle methods
15201526
15211527 Return the Turtle object itself.
15221528
1523- Generally used as a function, to get the anonymous turtle used by the
1524- module-level functions :
1529+ Call `` getturtle() `` to get the turtle used by functions such as
1530+ :func: ` forward ` and :func: ` left ` :
15251531
15261532 .. doctest ::
15271533 :skipif: _tkinter is None
@@ -2295,6 +2301,8 @@ How-to guides
22952301This section covers some typical turtle use-cases and approaches.
22962302
22972303
2304+ .. _automatically-begin-and-end-filling :
2305+
22982306How to automatically begin and end filling
22992307------------------------------------------
23002308
@@ -2321,6 +2329,7 @@ The code above is equivalent to::
23212329
23222330
23232331.. _compoundshapes :
2332+ .. _compound-shapes :
23242333
23252334How to use compound shapes
23262335--------------------------
@@ -2353,6 +2362,8 @@ below:
23532362 >>> shape(" myshape" )
23542363
23552364
2365+ .. _use-the-turtle-module-namespace :
2366+
23562367How to use the ``turtle `` module namespace
23572368------------------------------------------
23582369
@@ -2368,6 +2379,8 @@ The solution is to use ``import turtle`` - ``fd()`` becomes
23682379as t `` instead.)
23692380
23702381
2382+ .. _use-turtle-graphics-in-a-script :
2383+
23712384How to use turtle graphics in a script
23722385--------------------------------------
23732386
@@ -2393,6 +2406,8 @@ will not exit until it is terminated, for example by closing the turtle
23932406graphics window.
23942407
23952408
2409+ .. _use-object-oriented-turtle-graphics :
2410+
23962411How to use object-oriented turtle graphics
23972412------------------------------------------
23982413
0 commit comments