aboutsummaryrefslogtreecommitdiff
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
commit14fb79977b0b8a4d3def48c7b3a20e5c73901ce0 (patch)
tree17c344f4013dad3386bcea5c508339e24b89d892 /Doc/library/turtle.rst
parentFix issue10324 - Modules/binascii.c: simplify expressions (diff)
downloadcpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.gz
cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.bz2
cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.zip
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 efe9ae79eb7..c2b9f4172a6 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.