In this assignment, you are to use the existing project from the previous week and extend it one more time. Create a class for a simple shape. Using the class, create at least 3 objects (instead of just two) and display them - look back at item 4 on the last homework.
Specifications
- Create a class.
- Create a constructor in the class.
- Create a function called “display” to display the shape.
- Pass the x, y, the size (height, width or diameter), and the color into the constructor.
- Create at least three different objects of different locations, sizes and colors.
- Call the display function in the draw of your main sketch.
- Upload your files to GitHub and turn your link into Canvas.
Want more?
- Store the objects in an array and display them.
- Check for collisions on the objects in the array.