logo CodeStepByStep logo

pumpkinPie

Language/Type: Java graphics parameters DrawingPanel
Related Links:

Write a method named pumpkinPie that draws the following graphical figure onto a DrawingPanel. The figure is a picture of a "pumpkin pie" as an orange circle divided into four equal wedge-shaped pieces.

The window's canvas size should be 300x200. The pumpkin should be 100x100 in size and should be centered within the window. It should be filled in orange (r=255, g=128, b=0) and outlined in black.

Java DrawingPanel close maximize minimize
expected output
 
Method: Write a Java method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.