The right side wraps to the left side and the top wraps to the bottom. If the turtle tries to walk off onto one side of the screen, it wraps around. At the southwest corner, they are -250, -250 etc. At the northeast corner, they are 250, 250 at the southeast corner, they are 250, -250. The values of the two coordinates (normally called x and y) at the center are 0, 0. The graphics window has a coordinate system. Left 90 or lt 90 means left turn 90 degreesĬlearscreen or cs means erase all drawings. Right 90 or rt 90 means right turn 90 degrees A rotation by 360 is a complete rotation, therefore a rotation by 375 degrees is the same as 1/15 degrees.įorward 60 or fd 60 means go forward 60 steps The arguments for fd and bk are units those of rt and lt are angles that can be any integer. Except the cs command, each of these commands must be followed by one value called as its argument. The commands and their abbreviations are given below −Įither version of these commands can be used. The simple Logo Drawing Commands move the Turtle forward and backward and also turn it right or left.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |