Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Turtle graphics?

Definition 16.1 Primary & Middle School Computer Science · Hoofdstuk 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.
Lees in het hoofdstuk →