encyclopegia.org

Turtle graphics

In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis).[1] Turtle graphics is a key feature of the Logo programming language.[1] It is also a simple and didactic way of dealing with moving frames.[src]

In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis).[1] Turtle graphics is a key feature of the Logo programming language.[1] It is also a simple and didactic way of dealing with moving frames.[src] ==Overview== turtle graphics algorithm The turtle has three attributes: a location, an orientation (or direction), and a pen.[1] The pen, too, has attributes: color, width, and on/off state (also called down and up).[10] The turtle moves with commands that are relative to its own position, such as "move forward 10 spaces" and "turn left 90 degrees".[10] The pen carried by the turtle can also be controlled, by enabling it, setting its color, or setting its width.[10] A student could understand (and predict and reason about) the turtle's motion by imagining what they would do if they were the turtle.[src] Seymour Papert called this "body syntonic" reasoning.[src] A full turtle graphics system requires control flow, procedures, and recursion: many turtle drawing programs fall short.[1] From these building blocks one can build more complex shapes like squares, triangles, circles and other composite figures.[src] The idea of turtle graphics, for example is useful in a Lindenmayer system for generating fractals.[1] Turtle geometry is also sometimes used in graphics environments as an alternative to a strictly coordinate-addressed graphics system.[1] ==History== Turtle graphics are often associated with the Logo programming language.[1] Seymour Papert added support for turtle graphics to Logo in the late 1960s to support his version of the turtle robot, a simple robot controlled from the user's workstation that is designed to carry out the drawing functions assigned to it using a small retractable pen set into or attached to the robot's body.[10] Turtle geometry works somewhat differently from (x,y) addressed Cartesian geometry, being primarily vector-based (i.e.[1] relative direction and distance from a starting point) in comparison to coordinate-addressed systems such as bitmaps or raster graphics.[10] As a practical matter, the use of turtle geometry instead of a more traditional model mimics the actual movement logic of the turtle robot.[1] The turtle is traditionally and most often represented pictorially either as a triangle or a turtle icon (though it can be represented by any icon).[10] Today, the Python programming language's standard library includes a Turtle graphics module.[7] Like its Logo predecessor, the Python implementation of turtle allows programmers to control one or more turtles in a two-dimensional space.[3] Since the standard Python syntax, control flow, and data structures can be used alongside the turtle module, turtle has become a popular way for programmers learning Python to familiarize themselves with the basics of the language.[3] ==Extension to three dimensions== generated with Cheloniidae Turtle Graphics The ideas behind turtle graphics can be extended to include three-dimensional space.[1] This is achieved by using one of several different coordinate models.[src] A common setup is cartesian-rotational as with the original 2D turtle: an additional "up" vector (normal vector) is defined to choose the plane the turtle's 2D "forward" vector rotates in; the "up" vector itself also rotates around the "forward" vector.[10] In effect, the turtle has two different heading angles, one within the plane and the other determining the plane's angle.[src] Usually changing the plane's angle does not move the turtle, in line with the traditional setup.[10] Verhoeff 2010 implements the two vector approach; a roll command is used to rotate the "up" vector around the "forward" vector.[4] The article proceeds to develop an algebraic theory to prove geometric properties from syntactic properties of the underlying turtle programs.[4] One of the insights is that a dive command is really a shorthand of a turn-roll-turn sequence.[src] Cheloniidae Turtle Graphics is a 3D turtle library for Java.[1] It has a bank command (same as roll) and a pitch command (same as dive) in the "Rotational Cartesian Turtle".[src] Other coordinate models, including non-Euclidean geometry, are allowed but not included.[src] ==Code example== The following Python code uses the turtle module to create a rainbow spiral: import turtle as t t.shape("turtle") x = 1 t.speed(10) colors = ["red", "orange", "yellow", "green", "blue", "purple"] for i in range(100): for i in colors: t.forward(x * 0.3) t.left(60) t.color(i) t.right(30.5) x = x + 1 ==See also== ) Moving frame KTurtle L-system UCBLogo NetLogo FMSLogo MSWLogo Joy (programming language) ==References== ==Further reading==[10]

37 sentences · 37 cited inline · 16 references stored

References

  1. Turtle Geometry in Computer Graphics and Computer Aided Design · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "Turtle Geometry in Computer Graphics and Computer Aided Design." Goldman, Ron; Schaefer, Scott; Ju, Tao. 2026-11-21. http://www.cs.wustl.edu/~taoju/research/TurtlesforCADRevised.pdf. Accessed 25 November 2026.

    Chicago "Turtle Geometry in Computer Graphics and Computer Aided Design." Goldman, Ron; Schaefer, Scott; Ju, Tao. 2026-11-21. http://www.cs.wustl.edu/~taoju/research/TurtlesforCADRevised.pdf.

    APA Goldman, Ron; Schaefer, Scott; Ju, Tao. (2026). Turtle Geometry in Computer Graphics and Computer Aided Design. Retrieved November 25, 2026, from http://www.cs.wustl.edu/~taoju/research/TurtlesforCADRevised.pdf

  2. Resnick, Mitchel (January 2017) https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2 Retrieved 2026-6-4 Wikipedia revision 1357730724, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "Resnick, Mitchel (January 2017) https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2 Retrieved 2026-6-4 Wikipedia revision 1357730724, retrieved 2026-11-22." Resnick, Mitchel (January 2017) https://web. 2026-11-21. https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2. Accessed 25 November 2026.

    Chicago "Resnick, Mitchel (January 2017) https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2 Retrieved 2026-6-4 Wikipedia revision 1357730724, retrieved 2026-11-22." Resnick, Mitchel (January 2017) https://web. 2026-11-21. https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2.

    APA Resnick, Mitchel (January 2017) https://web. (2026). Resnick, Mitchel (January 2017) https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2 Retrieved 2026-6-4 Wikipedia revision 1357730724, retrieved 2026-11-22. Retrieved November 25, 2026, from https://web.media.mit.edu/~mres/papers/IJCCI-seeds-seymour-sowed.pdf#page=2

  3. 3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python 3 · retrieved 2018-08-22 · rev 1357730724
    Cite this reference

    MLA "3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python 3." "3. 2018-08-22. https://python.camden.rutgers.edu/python_resources/python3_book/hello_little_turtles.html. Accessed 25 November 2026.

    Chicago "3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python 3." "3. 2018-08-22. https://python.camden.rutgers.edu/python_resources/python3_book/hello_little_turtles.html.

    APA "3. (2018). 3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python 3. Retrieved November 25, 2026, from https://python.camden.rutgers.edu/python_resources/python3_book/hello_little_turtles.html

  4. 3D turtle geometry: artwork, theory, program equivalence and symmetry · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "3D turtle geometry: artwork, theory, program equivalence and symmetry." Verhoeff, Tom (2010). 2026-11-21. https://www.researchgate.net/publication/249923159. Accessed 25 November 2026.

    Chicago "3D turtle geometry: artwork, theory, program equivalence and symmetry." Verhoeff, Tom (2010). 2026-11-21. https://www.researchgate.net/publication/249923159.

    APA Verhoeff, Tom (2010). (2026). 3D turtle geometry: artwork, theory, program equivalence and symmetry. Retrieved November 25, 2026, from https://www.researchgate.net/publication/249923159

  5. Spencer Tipping on cheloniidae (retrieved 2016-9-17) Wikipedia revision 1357730724, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "Spencer Tipping on cheloniidae (retrieved 2016-9-17) Wikipedia revision 1357730724, retrieved 2026-11-22." 2026-11-21. http://spencertipping.com/cheloniidae/. Accessed 25 November 2026.

    Chicago "Spencer Tipping on cheloniidae (retrieved 2016-9-17) Wikipedia revision 1357730724, retrieved 2026-11-22." 2026-11-21. http://spencertipping.com/cheloniidae/.

    APA encyclopegia.org. (2026). Spencer Tipping on cheloniidae (retrieved 2016-9-17) Wikipedia revision 1357730724, retrieved 2026-11-22. Retrieved November 25, 2026, from http://spencertipping.com/cheloniidae/

  6. Tartapelago · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "Tartapelago." Pietrocola, Giorgio (2005). 2026-11-21. http://www.maecla.it/tartapelago.htm. Accessed 25 November 2026.

    Chicago "Tartapelago." Pietrocola, Giorgio (2005). 2026-11-21. http://www.maecla.it/tartapelago.htm.

    APA Pietrocola, Giorgio (2005). (2026). Tartapelago. Retrieved November 25, 2026, from http://www.maecla.it/tartapelago.htm

  7. 25.1. turtle — Turtle graphics — Python 3.7.0 documentation · retrieved 2018-08-22 · rev 1357730724
    Cite this reference

    MLA "25.1. turtle — Turtle graphics — Python 3.7.0 documentation." a b "25. 2018-08-22. https://docs.python.org/3.7/library/turtle.html. Accessed 25 November 2026.

    Chicago "25.1. turtle — Turtle graphics — Python 3.7.0 documentation." a b "25. 2018-08-22. https://docs.python.org/3.7/library/turtle.html.

    APA a b "25. (2018). 25.1. turtle — Turtle graphics — Python 3.7.0 documentation. Retrieved November 25, 2026, from https://docs.python.org/3.7/library/turtle.html

  8. Friends of the Turtle: On Logo And Turtles · retrieved 2026-11-21 · rev 1357730724
    Cite this reference

    MLA "Friends of the Turtle: On Logo And Turtles." Thornburg, David D. 2026-11-21. http://www.atarimagazines.com/compute/issue34/068_1_FRIENDS_OF_THE_TURTLE.php. Accessed 25 November 2026.

    Chicago "Friends of the Turtle: On Logo And Turtles." Thornburg, David D. 2026-11-21. http://www.atarimagazines.com/compute/issue34/068_1_FRIENDS_OF_THE_TURTLE.php.

    APA Thornburg, David D. (2026). Friends of the Turtle: On Logo And Turtles. Retrieved November 25, 2026, from http://www.atarimagazines.com/compute/issue34/068_1_FRIENDS_OF_THE_TURTLE.php

  9. Turtle Geometry in Computer Graphics and Computer Aided Design . · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "Turtle Geometry in Computer Graphics and Computer Aided Design ." 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "Turtle Geometry in Computer Graphics and Computer Aided Design ." 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA encyclopegia.org. (2026). Turtle Geometry in Computer Graphics and Computer Aided Design . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  10. move forward 10 spaces · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "move forward 10 spaces." The turtle moves with commands that are relative to its own position, such as "move forward 10 spaces" and "turn left 90. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "move forward 10 spaces." The turtle moves with commands that are relative to its own position, such as "move forward 10 spaces" and "turn left 90. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA The turtle moves with commands that are relative to its own position, such as "move forward 10 spaces" and "turn left 90. (2026). move forward 10 spaces. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  11. Friends of the Turtle: On Logo And Turtles . Compute! . March 1983. retrieved 6 Octo · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "Friends of the Turtle: On Logo And Turtles . Compute! . March 1983. retrieved 6 Octo." Friends of the Turtle: On Logo And Turtles. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "Friends of the Turtle: On Logo And Turtles . Compute! . March 1983. retrieved 6 Octo." Friends of the Turtle: On Logo And Turtles. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA Friends of the Turtle: On Logo And Turtles. (2026). Friends of the Turtle: On Logo And Turtles . Compute! . March 1983. retrieved 6 Octo. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  12. 25.1. turtle — Turtle graphics — Python 3.7.0 documentation . docs.python.org . retrieved 2018-08-23 · retrieved 2018-08-22 · rev 1357730724
    Cite this reference

    MLA "25.1. turtle — Turtle graphics — Python 3.7.0 documentation . docs.python.org . retrieved 2018-08-23." 1. 2018-08-22. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "25.1. turtle — Turtle graphics — Python 3.7.0 documentation . docs.python.org . retrieved 2018-08-23." 1. 2018-08-22. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA 1. (2018). 25.1. turtle — Turtle graphics — Python 3.7.0 documentation . docs.python.org . retrieved 2018-08-23. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  13. 3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python . · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python ." Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python ." Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python. (2026). 3. Hello, little turtles! — How to Think Like a Computer Scientist: Learning with Python . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  14. Verhoeff, Tom. 3D turtle geometry: artwork, theory, program equivalence and symmetry . 2010. · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "Verhoeff, Tom. 3D turtle geometry: artwork, theory, program equivalence and symmetry . 2010." Verhoeff, Tom. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "Verhoeff, Tom. 3D turtle geometry: artwork, theory, program equivalence and symmetry . 2010." Verhoeff, Tom. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA Verhoeff, Tom. (2026). Verhoeff, Tom. 3D turtle geometry: artwork, theory, program equivalence and symmetry . 2010. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  15. [http://spencertipping.com/cheloniidae/ Spencer Tipping on cheloniidae](retrieved 2016-9-17) . · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "[http://spencertipping.com/cheloniidae/ Spencer Tipping on cheloniidae](retrieved 2016-9-17) ." http://spencertipping. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "[http://spencertipping.com/cheloniidae/ Spencer Tipping on cheloniidae](retrieved 2016-9-17) ." http://spencertipping. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA http://spencertipping. (2026). [http://spencertipping.com/cheloniidae/ Spencer Tipping on cheloniidae](retrieved 2016-9-17) . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

  16. Pietrocola, Giorgio. Tartapelago . Maecla . 2005. · retrieved 2026-06-03 · rev 1357730724
    Cite this reference

    MLA "Pietrocola, Giorgio. Tartapelago . Maecla . 2005." Pietrocola, Giorgio. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724. Accessed 25 November 2026.

    Chicago "Pietrocola, Giorgio. Tartapelago . Maecla . 2005." Pietrocola, Giorgio. 2026-06-03. https://en.wikipedia.org/w/index.php?oldid=1357730724.

    APA Pietrocola, Giorgio. (2026). Pietrocola, Giorgio. Tartapelago . Maecla . 2005. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357730724

Cite this article

MLA

"Turtle graphics." encyclopegia.org, 2026, https://encyclopegia.org/wiki/turtle-graphics. Accessed 25 November 2026.

Chicago

"Turtle graphics." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/turtle-graphics.

APA

encyclopegia.org. (2026). Turtle graphics. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/turtle-graphics

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Alabama map turtle

stub · references available

Wide Quarter Video Graphics Array

stub · references available

McCord's box turtle

stub · references available

Yellow-blotched map turtle

stub · references available

Oaxaca mud turtle

stub · references available

Ringed map turtle

stub · references available

Dunn's mud turtle

stub · references available

Mary River turtle

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1357730724 · 0.5 · snapshot enwiki-001357730724

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.