challenge | notes

Challenge 2 - Diamonds are forever

You can change the pencolour by using the command SETPC followed by a number between 0 and 15. Try drawing pairs of rhombi in different colours and in different arrangements. For example, what does the following line of code produce?:

RT 60 FD 40 RT 60 FD 40 RT 120 FD 60 LT 120 FD 20 LT 60 FD 20 LT 120 FD 60


Now:
How are they connected?
What part does the colour play?
Could you repeat this pattern forever? Would it be useful to be able to store some commands to re-use? If so you need to learn about procedures.