1 Answer | Add Yours
The code would be repeat 6[fd 50 rt 60]. It is important to first analyze how many times do you want to repeat the statement to form your desired figure. Since it is a hexagon, the statements must be repeated 6 times. Now comes the important part. fd 50 is obvious as it is mentioned in the question. The part that is confusing is the value of the angle to be input. Most of them would try to put rt 120 as every interior angle of a hexagon is 120 degrees and end up with a triangle. But we must understand here that the angle is in reference to the pointing of the turtle and not to the line that we have just drawn. We are drawing the figure from outside, not inside. Though these may seem the same, the difference comes when we are stating the angle. Please refer to the image with the answer as I believe that it is the angle values that you are having trouble with.
CODE is repeat 6[fd 10 rt 60].
We’ve answered 315,564 questions. We can answer yours, too.Ask a question