mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-106996: Amend the introduction to the turtle graphics documentation (#106997)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
6acd85d910
commit
f8f16d0cfc
1 changed files with 21 additions and 3 deletions
|
@ -19,9 +19,27 @@
|
||||||
Introduction
|
Introduction
|
||||||
============
|
============
|
||||||
|
|
||||||
Turtle graphics is a popular way for introducing programming to kids. It was
|
Turtle graphics is an implementation of `the popular geometric drawing tools
|
||||||
part of the original Logo programming language developed by Wally Feurzeig,
|
introduced in Logo <https://en.wikipedia.org/wiki/Turtle_
|
||||||
Seymour Papert and Cynthia Solomon in 1967.
|
(robot)>`_, developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon
|
||||||
|
in 1967.
|
||||||
|
|
||||||
|
In Python, turtle graphics provides a representation of a physical "turtle"
|
||||||
|
(a little robot with a pen) that draws on a sheet of paper on the floor.
|
||||||
|
|
||||||
|
It's an effective and well-proven way for learners to encounter
|
||||||
|
programming concepts and interaction with software, as it provides instant,
|
||||||
|
visible feedback. It also provides convenient access to graphical output
|
||||||
|
in general.
|
||||||
|
|
||||||
|
Turtle drawing was originally created as an educational tool, to be used by
|
||||||
|
teachers in the classroom. For the programmer who needs to produce some
|
||||||
|
graphical output it can be a way to do that without the overhead of
|
||||||
|
introducing more complex or external libraries into their work.
|
||||||
|
|
||||||
|
|
||||||
|
Get started
|
||||||
|
===========
|
||||||
|
|
||||||
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
|
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
|
||||||
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
|
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue