Here is the link to my assignment.
Basically I used inheritance to create one parent class and several child classes. There are triangles, rectangles and ellipses. I made them rotate and scale. When mouse is pressed, they will also be stopped, with some new rotating patterns generated. I did not make some complex shapes, because I want to explore the inheritance and try to make my pattern simple. Of course, I think there can be more changes in color and size so that they can be more different. But currently, it is like many flower-shape stars flicking in the dark night, which I kind of like.
And here is a short video demo: