diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-09 18:40:03 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-09 18:40:03 (GMT) |
commit | 14fb79977b0b8a4d3def48c7b3a20e5c73901ce0 (patch) | |
tree | 17c344f4013dad3386bcea5c508339e24b89d892 /Doc/library/turtle.rst | |
parent | 922e904cca75577e213f0b9cf126003d251f2ada (diff) | |
download | cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.zip cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.gz cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.bz2 |
Issue #7061: Added a 'Turtle star' sidebar
Diffstat (limited to 'Doc/library/turtle.rst')
-rw-r--r-- | Doc/library/turtle.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index efe9ae7..c2b9f41 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. |