Question: Can someone please edit this code so that it creates a rotating object that meets this criteria? import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics
Can someone please edit this code so that it creates a rotating object that meets this criteria?
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.GraphicsD;
import javax.swing.;
public class DrawingBoard extends JPanel
int strokeWeight ;
public void paintComponentGraphics g
this.setBackgroundColorwhite;
drawDesigng; to get a quarter of reef.
to get full reef
to get top half change starting position
drawDesigng;
drawDesigng;
public void drawDesignGraphics g int xCenter, int yCenter, int radiushow far from center shape will befor spiral radius decreases through loop
int angle, int maxAngleprogression of drawing shapes overlapping each other
int angleIncrement ;amount of the angular position change
int size ;width of the circleit
int radiusIncr ;
int sizeIncr ;
GraphicsD gGraphicsDg;
gsetStrokenew BasicStrokestrokeWeight;
whileangle maxAngle
int x xCenter intradius MathcosMathtoRadiansangle;
int y yCenter intradius MathsinMathtoRadiansangle;
gdrawOvalxysize,size;
angle angleIncrement;
radius radiusIncr;
size sizeIncr;
public static void mainString args
int winWid ;
int winHie ;
JFrame myFrame new JFrameMy Rotation image";
myFrame.setSizewinWidwinHie;
myFrame.setDefaultCloseOperationJFrameEXITONCLOSE;
myFrame.addnew DrawingBoard;
myFrame.setVisibletrue;
method does not have parameters that allow for the location of the graphics
prduced by the methods to change as well as change the orientation.
does not use Multiple method callsto the same method with different arguments
made to produce the final design.
does not use of size variation of basic shape
does not use gradual change in a custum color
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
