We can use variables to reduce the amount of code we write.
| Command | Meaning |
|---|---|
| Quilt.b |
![]() |
| Quilt.c |
![]() |
| Quilt.b.turn() |
![]() |
| Quilt.b.sew(Quilt.c) |
![]() ![]() |
Change the program so that it makes a 3 by 2 grid.






Create a tilted square.
Variable ch is a chevron. Turn it twice and sew it on.
You can use turn(2) for turn().turn()




Define ts as the tilted square
from the previous question. Then build up more.
















We can do something similar with c.




Bigger stripes.







