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/includes | |
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/includes')
-rw-r--r-- | Doc/includes/turtle-star.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/includes/turtle-star.py b/Doc/includes/turtle-star.py new file mode 100644 index 0000000..1a5db76 --- /dev/null +++ b/Doc/includes/turtle-star.py @@ -0,0 +1,10 @@ +from turtle import * +color('red', 'yellow') +begin_fill() +while True: + forward(200) + left(170) + if abs(pos()) < 1: + break +end_fill() +done() |