Playground

We've learned a little about loops and about functions. Let's put them together and have some fun.
The code below has two functions already defined for you: draw_circle and draw_square. See if you can call them in turn to make new pictures. Some ideas are below.


Ideas to try:
  1. change the draw_circle calls into draw_square calls or vice versa.
  2. Make circles or squares of different sizes
  3. Make a series of polka dots all around the canvas. (Hint: the last two numbers used each time you call draw_circle are coordinates)