All Importnat Commands of MSWLogo For Students

Forward command- Press Enter Key (↵) after the command to execute the command. e.g. FD 100 ↵


Forward command- FD   e.g. FD 100↵ ::This command is used to move 100 units in forward direction.


Backward command-BK e.g. BK 100↵ ::This command is used to move 100 units in backward direction direction.


Screen clear command-CS e.g. CS↵: : This command is used to clear the screen of drawing area.


Clear text command –CT e.g.CT↵ :: This command is used to clear the text commands in the current command prompt window.


Pen UP Command-PU e.g. PU ↵:: This command is used to lift tracing of turtle during turtle positioning.


Pen Down Command-PD  e.g. PD ↵ :: This command is used to turn turtle to drawing mode.


Command-LT  e.g. LT 90↵ :: This command is used to turn left by 900


Command-RT  e.g. RT 120↵ :: This command is used to turn right by 1200


Reapeat Command-Repeat 4  e.g. repeat 4 [command here] ↵ :: This command is used to repeat the command of the inside bracket 4 times.


Penerase Command-Penerase  e.g. Penerase ↵ > BK 50 ↵ :: This command is used to set the pen at erase mode. If an line of 50 units is drawn previously then the example command erase that 50 units of line in backward direction.


Pennormal Command-Pennormal  e.g. Pennormal↵ :: This command is used to set the pen at normal mode. I mean to comeback from penerase mode to pennormal mode.

See also  Making Lines and Various Shapes with Logo Part 4 – MSWLogo

Show Turtle Command-ST  e.g.ST ↵ :: This command is used to show the turtle if it in hide mode.


Hide Turtle Command-HT  e.g.HT ↵ :: This command is used to hide the turtle.


Pen Size Command-SetPenSize [n n]  e.g. setpensize [5 5] ↵ :: This command is used to


Pen Color Command-SetPc [r g b]  e.g. setpc [204 200 150]↵ or setpc [50 158 25]↵ :: This command is used to set the color of the pen. The range of r or g or b is 0 to 255. We can also use mouse to set the color of pen.


Turtle position Command-Setpos [x y]  e.g.setpos [250 312] ↵ or setpos [-350 -312] :: This command is used to position the turtle according values of x-axis and y-axis values. Remember to use penup command to avoid drawing while positioning the turtle.



Comments

5 responses to “All Importnat Commands of MSWLogo For Students”

  1. Just want to say your article is as amazing. The clearness in your post is simply excellent and i can assume you are an expert on this subject. Well with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please keep up the gratifying work.

    1. Thanks for your appreciation and comment.

  2. how do i erase a line in msw logo
    pls reply

    1. PENERASE turns the pen of turtle pen into an eraser.
      e.g.
      PENERASE FD 30

Leave a Reply