Presentation is loading. Please wait.

Presentation is loading. Please wait.

LOGO BY Kaotip 9S.

Similar presentations


Presentation on theme: "LOGO BY Kaotip 9S."— Presentation transcript:

1 LOGO BY Kaotip 9S

2 THE TURTLE WHICH WE COMMAND
WILL EREASE ALL THE CODES AND COMMANDS WHERE THE LIST OF COMMAND THAT WAS WRITTEN WILL BE DISPLAYED WHERE WE WRITE THE COMMAND

3 WHAT IS LOGO LOGO, or Turtle, is an program which move the turtle according to commands of syntax, or code, written It is used as an educational program that teaches how to perform simple commands in drawing mathematical shapes

4 EXAMPLE OF COMMAND CODE
Draws a square with sides of 100 units long Draws a triangle

5 SIMPLE COMMANDS PD – pen down. This put down the pen, or the turtle, and the followed commands will make a visible shape or line. This is a command which need to be written first thing when using logo. PU – pen up. This is like lifting a pen, movement that follow this will be invisible. So the turtle (little triangle thing) will still move, but there will be no line. FD – move forward. The turtle will move forward. When using this command, a number of how far you want it to go forward is needed to be put in after FD. Ex: FD 100. LT – turn left. The turtle will turn left with this command, but you need to put in a number for what degree you want to turn in left direction. Ex: LT 9o. That would be a right angle turn. RT – turn right. This is just like LT, but instead of turning left it will turn right.

6 COMMAND FOR COLOURING TO COLOUR A SHAPE :
setfloodcolor – this set the color to a color RGB (RED GREEN BLUE)values, which you need to put in after setfloodcolor. The values goes form 0 to 255. ex: setfloodcolor [ ] this give a red color. fill – fill in the color that was set. In order to fill, the turtle need to be in the shape that was to be colored, when commanded fill color that was set by setfloodcolor will fills the area. TO CHANGE LINE COLOR AND SIZE: SetPC – set pen color. This set the color of the line that will be drawn following this command. An RGB of color need to be put in also. Ex: SetPC [ ] changes the pen color to green SetPenSize – set pen size. This set the size of the line that is to be drawn. The width of the pen is to be put in also. Ex: SetPenSize [2 2] Pennormal – change pen back to normal size and color (black).

7

8 Variables Variable is what we change.
If you draw a square with a variable in it and you change that variable, the square will still be a square but it will change according to what the variable is. If your variable is the length of the square the square will changes size. variable The length (the variable) the change according to the number you put Code you typed in Endall What it turned out look like Code

9 You could do other shapes with variable too
For example, you could make a triangle with variable length Here is the code You can make the angle a variable too


Download ppt "LOGO BY Kaotip 9S."

Similar presentations


Ads by Google