Learning how to draw polygons is a step toward drawing tessellations using LogoWriter. Included in this activity are some polygons that do not lend themselves to tessellating, however, that is something the students can discover.
6. Instruct the students to go to the "flip side" and write procedures for the various polygons. Encourage them to write procedures just by adding a "to ____" to the beginning of the procedure and an "end". For example:
TO SQUARE
fd 50 rt 90
fd 50 rt 90
fd 50 rt 90
fd 50 rt 90
END
or they might write
TO SQUARE
repeat 4[fd 50 rt 90]
END
Sample Procedures
Introduce the idea of a variable. Introduce one possible procedure and encourage the students to develop procedures using variables for all of the polygons. These are possible procedures:
to square :side
repeat 4[fd :side rt 90]
end
to triangle :side
repeat 3[fd :side rt 120]
end
to pentagon :side
repeat 5[fd :side rt 72]
end
to hexagon :side
repeat 6[fd :side rt 60]
end
to octagon :side
repeat 8[fd :side rt 45]
end
to rectangle :width :length
repeat 2[fd :width rt 90 :length rt 90]
end