# File: ChapterGraphics/circles3.py
""" Draws three tangent circles r=50
"""
from graphics import *
from math import *
def main():
r = 50 # radius
win = GraphWin("Three Circles", 500, 500)
A = Point(250,250) #center of first circle
c1 = Circle(A, r).draw(win)
B = Point(A.x +2* r, A.y)
c2 = Circle(B, r).draw(win) # center of second circle
Cy = A.y + r * sqrt(3)
C = Point(A.x + r, Cy)
c3 = Circle(C, r).draw(win)
message = Text( Point(150,475), "Three Tangent Circles" )
message.draw( win )
main()