In Logo, you can draw a rectangle using the REPEAT
command to create the four sides efficiently. For example, you can use the following code:
REPEAT 2 [
FORWARD 100 ; length of the rectangle
RIGHT 90
FORWARD 50 ; width of the rectangle
RIGHT 90
]
This code moves the turtle forward to draw the length, turns right, and then draws the width, repeating the process to complete the rectangle.
This is how to make a rectangle in Microsoft logo. repeat 2[fd 200 rt 90 fd 400 rt 90]
write the logo commands to draw the triangle
To draw a cycle in MSW Logo, you can use the REPEAT command along with the FORWARD and RIGHT commands. For example, you can type REPEAT 36 [FORWARD 10 RIGHT 10] to create a circular shape. This command effectively moves the turtle forward while turning it slightly, creating a smooth cycle. Adjust the numbers to change the size and smoothness of the cycle.
repeat 360[fd1 lt 1]
Repeat 4 [fd 60 rt 90]
This is how to make a rectangle in Microsoft logo. repeat 2[fd 200 rt 90 fd 400 rt 90]
repeat 3 [fd 250 rt 120]
To draw a hexagon using the repeat command in Logo, you can use the following code: repeat 6 [forward 100 right 60] This command will move the turtle forward by 100 units and then turn it right by 60 degrees, repeating this process six times to create a hexagon. Adjust the forward distance to change the size of the hexagon.
To draw a triangle using the repeat command in Logo, you can use the following code: REPEAT 3 [FORWARD 100 RIGHT 120] This command instructs the turtle to move forward 100 units and then turn right by 120 degrees, repeating this process three times to complete the triangle. Adjust the forward distance as needed for different triangle sizes.
write the logo commands to draw the triangle
To draw a cycle in MSW Logo, you can use the REPEAT command along with the FORWARD and RIGHT commands. For example, you can type REPEAT 36 [FORWARD 10 RIGHT 10] to create a circular shape. This command effectively moves the turtle forward while turning it slightly, creating a smooth cycle. Adjust the numbers to change the size and smoothness of the cycle.
To create a donut shape in MSW Logo, you can use the REPEAT command to draw two circles. First, use the REPEAT command to draw a circle with a smaller radius for the inner part of the donut, then draw another circle with a larger radius for the outer part. You can also use the FILL command to color the donut. Here's a simple example: REPEAT 36 [FORWARD 10 RIGHT 10] ; Outer circle FORWARD 20 REPEAT 36 [FORWARD 5 RIGHT 10] ; Inner circle Adjust the values to modify the size and appearance of the donut as needed.
reapet 2[fd100 rt 90]
repeat 360[fd1 lt 1]
Repeat 4 [fd 60 rt 90]
To create a flag in MSW Logo using the repeat command, you can use the following steps: First, define the size and colors of the flag sections. Then, use the REPEAT command to draw rectangles that represent each section of the flag. For example, you can use REPEAT 3 [FORWARD 100 RIGHT 90 FORWARD 50 RIGHT 90] to create three horizontal stripes. Adjust the dimensions and colors as needed to achieve your desired flag design.
Repeat 360 [fd 1 lt 1]