For this exercise, I was instructed to create an interactive program that allows a user to draw a single triangle by clicking on three points anywhere on the screen. After that, the program is supposed to draw up to 5 more triangles randomly across the screen. I intentionally set it that the new, randomly generated triangles appear one at a time per every mouse-click after the initial triangle is created.
Since the posting of my last entry, I have researched how to link to an executable .jar file, and will see about going back and adding links to the programs from previously.
Click this link to see this program in action.
The source code is located here.
Animation Project
16 years ago
The 6 triangles can be different everytime as well and different colors:)I know I am stating the obvious but it is cool and it works.
ReplyDelete