Under cover

Help Contents The Logo Turtle Under cover
More things to do Logo and Languages

Under cover

hide, show, shown?

When painter draws a pictures he stands close to it. But when the painting is done, he withdraws so that to allow others to enjoy it.

It is the same with the turtle. You control it and draw a beautiful figure, but the turtle is still there, on its last position.

Of course, you can say it to hide and to go away it is easy - pick up the pen and go forward far enough beyond the edge of the screen.

Anyway, there is a better way to do this. Say
	hide
and the turtle will put its invisible hat. It will be there, it will not change its position at all, but it will be invisible.

Now you can ask the turtle to dance and you will not know where it is, but if the pen is down, it will draw traces.

As a side effect using a hidden turtle draws figures faster.

When you want to show back the turtle use the instruction
	show
. As it is the case with pu, pd and pd?, you can ask the turtle to say whether it is hidden or not with the question
	shown?
.

More things to do Logo and Languages