Class and Array of different shapes
in
Programming Questions
•
1 year ago
Hi, I'm currently writing a program that is sort of an interactive building blocks game. I would like for the program to draw a randomized shape using the keyReleased function.
I have created 7 different shapes using rect(), ellipse(), triangle(), and beginShape(), and I was wondering if it is possible to create a single external class and array which would hold these different types of shapes. I've looked around the forums, and I haven't found any use of classes that hold different shape types.
Thank you for any help!
1