Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Turtle graphics » ?

Definition 16.1 Primary & Middle School Computer Science · Chapitre 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.
Lire dans le chapitre →