animation of a circle reflecting off the walls of a rectangle. you can also change it to an infinity shape, which is less interesting than a circle but still cool.
this project was inspired by a video i watched about the same thing, and its explanation on how simple the math is for the reflections off the rectangle.