repeat 8[repeat 6[fd 80 rt 60] rt 45]
________
repeat 8[repeat 6[fd 80 rt 60] rt 45]
Chỗ tô đậm là code vẽ 1 hình lục giác.
repeat 8[repeat 6[fd 80 rt 60] rt 45]
repeat 8 là lặp lại 8 lần vẽ 1 hình lục giác.
repeat 8[repeat 6[fd 80 rt 60] rt 45]
Lặp lại 8 lần vẽ 1 hình lục giác, mỗi lần quay góc phải $45^o$