Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Turtle graphics?

Definition 16.1 Primary & Middle School Computer Science · Bab 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.
Baca dalam konteks →