summaryrefslogtreecommitdiff
path: root/Doc/library/turtle.rst
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-11-09 18:40:03 +0000
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-11-09 18:40:03 +0000
commite5b67d299685fa04c373285f4fd0b94c0372e737 (patch)
tree985f691456810c02e10baf60d3d75b50a743bee9 /Doc/library/turtle.rst
parentd6b9fc5b90cc87deba82e32685f2bbc2cf70d31c (diff)
downloadcpython-e5b67d299685fa04c373285f4fd0b94c0372e737.tar.gz
Issue #7061: Added a 'Turtle star' sidebar
Diffstat (limited to 'Doc/library/turtle.rst')
-rw-r--r--Doc/library/turtle.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index efe9ae79eb..c2b9f4172a 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -23,6 +23,16 @@ command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
``turtle.left(25)``, and it rotates in-place 25 degrees clockwise.
+.. sidebar:: Turtle star
+
+ Turtle can draw intricate shapes using programs that repeat simple
+ moves.
+
+ .. image:: turtle-star.*
+ :align: center
+
+ .. literalinclude:: ../includes/turtle-star.py
+
By combining together these and similar commands, intricate shapes and pictures
can easily be drawn.