Pendown Command Example

Details

Action

Lowers the pen to trace the path of the turtle under LOGO commands. Speed up the Point and Line commands in loops by calling Penup before drawing and then calling Pendown when the drawing is finished. Also, Penup using True; causes points not to be drawn (even during screen refreshes, say for sprite animation). Pendown using true; allows points to be drawn again.

penup;

move [3,4];

pencolor red;

pendown;

move [0,4];

penup;

draws a red horizontal line segment from the point (3,4) to (0,4). The segment is redrawn whenever the window is refreshed.