Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

How do we create more options beyond circle?

+15 votes
I know that we have to have our dot shape to have at least two options: circle or square. However, I can't seem to figure out how to create any other ones other than the given one, circle. I don't really even know how to start it. Thanks!
asked Jan 17, 2016 in (Winter 15-16) by Connor Berek (100 points)

1 Answer

+3 votes

Well, you're going to need a conditional statement to check what type of shape/mode the user requested...  

i.e., wherever it is that you have a fillOval(...) call right now, you'll want to provide some other options... e.g. fillRect(...) for one.

answered Jan 17, 2016 by Forrest Stonedahl (3,438 points)
...