Let us see how we can teach the turtle to do the above. What if you want the turtle to draw thicker or thinner lines? The SETPENSIZE controls the width of the pen so that you can control the width of the traces drawn by the turtle. Conversely, PENDOWN command sets the pen down so that the turtle will write on the screen as it moves around. This command is useful if you do not want the turtle to draw anything when you ask the turtle to move. On the other hand, if the turtle’s pen is down, the turtle draws on the screen as it moves across the screen. If the turtle’s pen is up, the turtle does not draw on the screen as it moves across the screen. These commands can move the turtle’s pen up or down. On this page, we will learn commands to control turtle’s pen. As it moves, it can draw a trace on the screen.
0 Comments
Leave a Reply. |