Getting Started =============== Quick Reference --------------- circle ~~~~~~ The function ``circle`` draws a circle. It takes three arguments, the x and y co-ordinates of the center and the diameter. circle(200, 100, 50) rect ~~~~ The function ``rect`` draws a rectangle. It takes four arguments, the x and y co-ordinates of the top-left corner and width and height of the rectangle. :: rect(200, 100, 50, 75); Exercises --------- Write programs to draw the following patterns. **Problem 1.1** .. figure:: images/three-circles-in-a-line.png :scale: 50 % :alt: Three circles in a line Three circles in a line. **Problem 1.2** .. figure:: images/concentric-circles.png :scale: 50 % :alt: Concentric Circles Three concentric circles. **Problem 1.3** .. figure:: images/touching-circles.png :scale: 50 % :alt: Touching Circles Three circles touching at bottom. **Problem 1.4** .. figure:: images/two-small-circles-in-a-big-circle.png :scale: 50 % :alt: Two small circles in a big circle Two small circles in a big circle. **Problem 1.5** .. figure:: images/plus.png :scale: 50 % :alt: plus Plus/cross pattern. **Problem 1.6** .. figure:: images/corner-squares.png :scale: 25% :alt: four corner squares Four small squares touch the four corners of a big square. **Problem 1.7** .. figure:: images/circle-in-a-square.png :scale: 50 % :alt: circle in a square. Circle in a square. **Problem 1.8** .. figure:: images/square-in-a-circle.png :scale: 25% :alt: square in a circle. Square in a circle.