NOC – Week 6: Attraction (Wentao)

When the program started, there will be a large ellipse in the center.

After clicking the mouse, different size ellipses will appear on the canvas at the mouse position. The small ellipses will be attracted by the large ellipse and the attraction is determined by the size of the ellipse.

The ellipses will collide with each other. For the small ellipses, their size will get smaller after each collision. 

Leave a Reply