Question
Write a program that shows your own RPG character (e.g., Wizard) using the different shapes found in the Graphics class. The program should ask for
Write a program that shows your own RPG character (e.g., Wizard) using the different shapes found in the Graphics class. The program should ask for a name and asks the user to choose from a list of colors using JOptionPane. The name will appear in the Graphics canvas on top of the cartoon character, while the color will be applied to the character's main parts (other parts may have colors other than the inputted color). Required: There exists at least one or more of the following: - drawOval/fillOval -drawRect/fillRect -drawPolygon/fillPolygon -drawLine -drawArc/fillArc -setColor(new Color(R,G,B)) -setFont(new Font(type, style, size)) -drawString
Sample:
http://2.bp.blogspot.com/-zuciWKkG1zI/UVdWeA9wwtI/AAAAAAAAAfg/b1K5K3Uekvw/s1600/4.jpg
Just like that, simple and just using shapes. But for this, I need to draw a mage or a wizard. Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started