# Program: triangle.pyw
# Description: Interactive graphics program to draw a triangle

from graphics import *
import random, time

def main():
    win = GraphWin("Random Circles", 300, 300)
    for i in range(100):
        x = random.randrange(5, 295)
        y = random.randrange(5, 295)
        rad = r = random.randrange(5, 40)
        
        r = random.randrange(256)
        b = random.randrange(256)
        g = random.randrange(256)
        color = color_rgb(r, g, b)
        
        circle = Circle(Point(x,y), rad)
        circle.setFill(color)
        circle.draw(win)
        time.sleep(.1)
    win.getMouse()
    win.close()

main()
