You are on page 1of 8

LOGO –

DRAWING
Polygons & Circles

Muhammad Faizan Raza – 4L


HOW TO DRAW TWO LINES WITH AN ANGLE.
To make the turtle draw two lines with an angle,
We have to give the following set of instruction:

RT 180
FD 100
LT 90
FD 100
HOW TO DRAW A SQUARE

 To draw a square , we have to give the followings instructions to the turtle:

 FD 100
 RT 90
 FD 100
 RT 90
 FD 100
 RT 90
 FD 100
 RT 90
HOW TO DRAW A TRIANGLE
 To draw a Triangle , we have to give the followings instructions to the turtle

 FD 100
 RT 120
 FD 100
 RT 120
 FD 100
 RT 120
PURPOSE OF PENUP, PENDOWN,
PENERASE,PENNORMAL,
HIDE TURTLE, SHOW TURTLE
 PENUP command is used to lift the pen of the turtle from
the screen, As a result, the turtle does not draw anything.
Thus, you can move the turtle to any part of the screen
without drawing anything.
 FD 40
 RT 90
 PU
 FD 40
PENDOWN (PD)
 PENDOWN command puts the pen of the turtle down on the screen. The turtle can thus start
drawing again when given the command:
 FD 100
 RT 90
 PU
 FD 80
 RT 90
 PD
 FD 100
PENERASE (PE)
 PENERASE command drops the pen of the turtle and picks up the eraser. Any drawing
command after PE command is used to erase the lines instead of drawing them.
 FD 50
 PE
 BK 50

PENNORMAL
• PENNORMAL command makes the turtle behave normal.As we knew any command after using PE
makes the turtle erase the drawing. To make it behave normal, use command PENNORMAL
HIDETURTLE (HT)
 HT command hides the turtle. We can no longer see it on the screen, however , it will continue
to follow the commands being given.

SHOWTURTLE (ST)
ST command displays the turtle which was hidden due to the usage of HT command

You might also like