Member Avatar

does anyone know how to code to get colorful bouncing balls like in google blog http://googleblog.blogspot.in/

Member Avatar
0
6
Member Avatar

I am trying to draw circle in the upper left corner of a graphics window, and then move that circle at a diagonal to the bottom right corner, and then bounce it back to the upper left, and so on until my loop is exhausted. I can't get my moving circle to reverse direction at the first bounce point (first if-statement inside for loop), and I don't know why... [CODE] from graphics import* def main(): # create a 200 x 200 graphics window win = GraphWin() x = 10 y = 10 # create a circle of radius 10 at …

Member Avatar
0
4

The End.