Openframeworks Basics
GEOMETRIC LOOPS
These animations are constructed using a geometric shape on the center and rotating and scaling it.
OBJECT ORIENTED PROGRAMMING
I implemented this project by defining a class of balls. Using the class we can set a ball's position, color, speed, and direction. The advantage of defining classes is, we can later reproduce as many objects as we need. We can keep our code clean by just calling the appropriate methods when wanted. I used this class in two ways; the first one is in the mouseDragged function, we create balls using the mouse position. The direction and color of the balls are random. The second one randomizes the position along with other parameters, creating a certain number of balls on the screen.