2. Square
I made a square by going forward 200 pixels, then turning right 90°,
and repeating this four times.
To Square
Repeat 4 [FD 200 RT 90]
End
3. Rectangle
I made a rectangle by going forward 100, and then turning right 90°.
Afterwards, I went forward another 200, and repeated it again.
To Rectangle
Repeat 2 [FD 100 RT 90 FD 200 RT 90]
End
4. Triangles
To Equilateral_Triangle
Repeat 3 [RT 120 FD 100]
End
To Isosceles_Triangle
LT 90 FD 100 RT 110 FD 150
RT 140 FD 150
EndI created all three triangles-an equilateral, isosceles
and scalene. All three triangles had different angles
and lengths. An equilateral triangle has three even
sides. An isosceles triangle has two sides the same,
and the scalene triangles sides are all different.
To Scalene_Triangle
FD 162 LT 120 FD 200 LT 130 FD 183
End
5. Pentagon
I made a pentagon by going forward 150, and then turning right 72°
and repeating this 5 times.
To Pentagon
Repeat 5 [FD 100 RT 72]
End
6. Trapezium, Rhombus and
Parallelogram
Next, I had to do another quadrilateral shape.
I chose to do three as a challenge!
To Parallellogram
Repeat 2 [RT 45 FD 100] RT 135 FD
100 RT 45 FD 100
End
To Trapezium
Repeat 3 [RT 45 FD 75] RT 135
FD 180
End
To Rhombas
RT 25 Repeat 2 [FD
200 RT 130 FD 200
RT 50]
End
7. Octagon
I made an octagon by dividing 360 by 8. It is 45, so that is the angle I
need. The commands are simply repeating forward 75, and then 45°
right 8 times.
To Octagon
Repeat 8 [FD 75 RT 45]
End
8. Pattern
I had some fun playing around with different patterns. In the end, I had
multiple to choose from: These included tunnels, cool patterns, and lots
of other random stuff. But in the end, the donut won. For the donut,
you need to make a circle. This is just forward 1, left turn 1 repeated 360
times!
To Donut_Pattern
Repeat 19 [Circle RT 19 FD
10]
End
To Circle
Repeat 360 [FD 1 LT 1]
End