1 / 9

MS LOGO

MS LOGO. Made by: Soha. CONTENTS. How MS logo looks like Different types of commands Examples of commands and their result What is a variable? Examples. How MS logo looks like. This is the turtle. It draws whatever you command. This is where you have to write commands.

gavivi
Download Presentation

MS LOGO

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MS LOGO Made by: Soha

  2. CONTENTS How MS logo looks like Different types of commands Examples of commands and their result What is a variable? Examples

  3. How MS logo looks like This is the turtle. It draws whatever you command This is where you have to write commands

  4. Different types of commands BASICS PU-This means PENUP. It lifts the pen from the screen so that moving the turtle doesn’t draw a line. Example: PU PD- This means PEN DOWN. It puts the pen down so that moving the turtle draws a line. Example: PD Penerase- Sets the pen down and sets the mode to erase. When the pen is moved, it will erase whatever is under it. Example: Penerase or PU

  5. Pennormal- sets the pen back to normal mode and cancels the erase mode. Example: Penerase FD- Move forward. Example: FD 100 BK- Move backward. Example: BK 100 LT- Rotate the turtle left(degrees). Example: RT 90 RT- Rotate the turtle right(degrees). Example: LT 90

  6. setfloodcolor-sets the flood color to the appropriate red, green, blue values. Example: setfloodcolor [255 0255] Fill- floods the area bounded with lines by whatever color was specified in the setfloodcolor command. Example: fill

  7. Examples of commands and their result Octagon=Repeat 8 [ fd 90 rt 45] Square= fd 100, rt 90, fd 100, rt 90, fd 100, rt 90, fd100\ Triangle=repeat 3 [fd 100 rt 120]

  8. What is a variable? A variable is the data that varies For example in spreadsheet, the data that we enter in cells are variables because we can change them.

  9. Examples 100 is the variable because we can change it’s value 200 is the variable because we can change it’s value Repeat 4 [fd100rt 90] Repeat 3[fd 200 rt 120]

More Related