Recitation 11: Workshops
Instructor: Marcela
In this recitation, I attended the Object Orientated Programming workshop. In this session, we learned about class functions and how it would be useful if we wanted to store multiple things and have them show. We created words that would show (ie potato, onion, carrot) at a specific opacity. We used an ArrayList to further organize the words and allow the code to be dynamic (meaning that we could change the words easily without changing the functionality).
I asked Tristan if we could make the words disappear by clicking directly on the words itself rather than having the first or last word in the array. We worked on this line of balls example he had. We originally had the clicking working according to the diameter of the ball, so the ball would disappear if you clicked a little bit outside the circle, but then we adjusted it to fit the radius to be more accurate.