Ketan Maheshwari wrote: > Hi All > > I want to create a simple animation on a 2D cartesian plane, wherein > there are 2 identical circles drawn at an arbitrary distance with each > other.
Here is a simple animation written in Tkinter that might get you started: http://effbot.org/zone/tkinter-animation.htm Kent > Now the idea is to move the circles randomly with a fixed step size and > check the distance between their centers. this uses the formula > d=sqrt((x2-x1)**2+(y2-y1)**2). When this distance becomes same as > 2*radius, the circles are considered to be tangential. > Is it possible to show this scenario as an animation sequence and > capturing the coordinates of the centers of the circles at each step and > stopping the iteration when they get tangential. > > Thanks. > k. > _______________________________________________ > Tutor maillist - [email protected] > http://mail.python.org/mailman/listinfo/tutor > > _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
