|
Lesson 3: With colors |
|
©1997/1998 Sebastian Golze, Thomas Hirsch
und
|
[1_First_steps] [2_Turn_left_turn_rigth] [3_With_colors] [4_Procedures] [5_Parameters] [6_Loops] [7_More_parameters] [8_Stars] [9_Upload_and_Download] [10_LOGO_learns_to_write]
Hey, did you know that LOGO has not only got one pencil inside his back plate? He's got a whole box of pencils in several colors. If you want to tell him that he should draw in another color, just use the command color followed by the color you want. For example... color red ...and so on. All colors you may use are listed in the help-file. If you want LOGO to walk some steps without drawing, write up and he'll lift his pencil up. The command down lets him draw again. Here's an example which draws a colored, interrupted line:
procedure main That's quite long. Look at it again while executing the commands step-by-step. Hey, the last line isn't colored at all ! But you see that you can always tell LOGO to pick up the black pencil again. Draw some squares in different colors. If you figured out how to use colors, you may draw a house in your preferred color with a nice red roof. Just draw a square again and place a red triangle on it. If you've got the time, you could draw a door and some windows too... |