challenge| notes

Challenge 6 - Triangles and Stars

How about starting by creating procedures for the small and largetriangles?

to smtri
REPEAT 3 [FD 20 RT 120]
end

to lgtri
REPEAT 3 [FD 100 RT 120]
end

Then you might create a procedure for the part of the patternmade from the large triangles:

to star
LT 30
REPEAT 6 [lgtri RT 150 PU FD 20 PD LT 90]
end

What is the "LT 30" for at the start of this procedure?

What is happening between each triangle being drawn?

Now you could produce the part of the design created from thesmall triangles.

Finally, put the two patterns together.

Of course there are other ways of doing this. You could create a procedure comprising the basic unit of one large and two small triangles and then repeat this six times.

The main point is that working on small 'modules at a time means you can test things out before moving on. It also helps you to think about how the problem can be tackled by considering smaller tasks to complete.