src/main/java/org/teachingextensions/logo/utils/LineAndShapeUtils/Diamond.java
@Override
  public void paint(Graphics2D g, JPanel caller)
  {
    Color color2 = PenColors.getTransparentVersion(mainColor, percentTransparent);
    g.setColor(color2);
    int width = 400;
    int height = 300;
    g.rotate(50);
    g.fillRect(x, y, width, height);
  }
@Override
  public void paint(Graphics2D g, JPanel caller)
  {
    Color color2 = PenColors.getTransparentVersion(mainColor, percentTransparent);
    g.setColor(color2);
    int width = 400;
    int height = 300;
    g.rotate(50);
    g.fillRect(x, y, width, height);
  }
@ Override public void paint ( Graphics2D g , JPanel caller ) { Color color2 = PenColors . getTransparentVersion ( mainColor , percentTransparent ) ; g . setColor ( color2 ) ; int width = 400 ; int height = 300 ; g . rotate ( 50 ) ; g . fillRect ( x , y , width , height ) ; }
Paints a diamond
<div><b>Example:</b> {@code  diamond.paint(g,caller)}</div>

@param g
the graphics object
@param caller
the Program Window or panel
Paints a diamond <div > <b > Example : < / b > { @code diamond . paint ( g caller ) } < / div >