Project with Wen Chen

I worked with Wen Chen on this project. We wanted to make a visualization that would be the next step after learning how to make the ball bounce back and forth across the screen (on the same X-axis). We made a sketch that changes the angle of the ellipse when it hits either X or Y axis. We also made a button that the user can click to generate a new ball at a random place on the canvas that will move at a random speed and have a random stroke color assignment. We wanted to be able to see the path of each ellipse so that the ellipse would appear to be drawing its path, see the final product below:

Previous
Previous

For Loops

Next
Next

Variables