Image of LOGO LOGO

Lesson 3: With colors

     English   Deutsch   Français
Your browser does not support Java for the moment. In order to use this page we strongle suggest that you go to the "Java Help" page. Please choose "Java_Help" in the small menu below. It's possible to use our page without Java but then you will have to download a Logo interpreter from our "Download" page.

[_Home_] [_Introduction_] [_Java_Help_] [_Download_] [_Learn_Logo_] [_Program_] [_Teacher_] [_Contest_] [_Discussion_] [_Procedures_] [_Perspective_] [_About_]

©1997/1998 Sebastian Golze, Thomas Hirsch und
Vinh Hoi Le Chau
. Please mail us if you had problems with our site os if you have any other suggestion.

Your browser does not support Java. Please read the text on the left side of this page about Java. If you work without Java you will have to use the HTML menu below this text.
[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
color green
color white
color orange

...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
color red
go 10
up
go 10
down
color orange
go 10
up
go 10
down
color yellow
go 10
up
go 10
down
color green
go 10
up
go 10
down
color blue
go 10
up
go 10
down
color black
go 10
up
go 10
down
end

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...

lesson 2«------» lesson 4

Your browser does not support Java. With Java you would see here Logo sitting on his sheet of paper and the Logo interpreter. You have to activate Java or to use an external interpreter (which works exactly like this one) you can get at our "Download" section.