Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Turtle graphics?

Definition 16.1 Primary & Middle School Computer Science · Capítulo 16 — Repeating with for: Turtle Drawings

Turtle graphics is a way of drawing with a program: a pen, called the turtle, moves on the screen and leaves a line behind it. It has a position and a heading, the direction it faces, and it obeys forward(d) (move dd steps straight ahead), left(a) and right(a) (turn on the spot by aa degrees), penup() and pendown() (lift or lower the pen).

The turtle’s state is its position and its heading (the red arrow). forward changes the position and draws; left changes only the heading.
The turtle’s state is its position and its heading (the red arrow). forward changes the position and draws; left changes only the heading.
Leer en el capítulo →