# ALlison Obourn
# CS 115, Autumn 2021
# Lecture 23

# This program draws three rows of green circles on a tall thin
# panel with a grey background. The rows are each 7 circles long and
# perfectly horizontal. Each circle is 20 wide and tall and placed
# directly after the circle before it with no gap. 

from ECGUI import *

def main():
    panel = drawing_panel(300, 700, "#CCCCCC")
    green_circles(panel, 0, 0)
    green_circles(panel, 300, 20)
    green_circles(panel, 600, 150)


# draws a horizontal row of 7 green circles 20 by 20 each on the passed
# in panel. The top of all of the circles is at the passed in y and 
# the left side of the first circle is at the passed in x. The rest of the
# circles are placed so that each is horizontally right after the one before
# it.
def green_circles(panel, y, x):
    for i in range(0, 7):
        panel.fill_oval(i * 20 + x, y, 20, 20, "darkgreen")



main()
