Help with Grow/Shrink Methods!
Hi,
1. I am trying to create a program that will include four methods that will grow a diamond shape horizontally and vertically and shrink the diamond horizontally and vertically.
2. Write a loop in main() that repeatedly shrinks the diamond vertically while horizontally growing it.
I have made this code so far:
package animax;
import java.awt.*;
publicclass GrafixPolygon
{
protectedint [ ] X ={300, 350, 250} ;//positions the diamond
protectedint [ ] Y ={100, 200, 200} ;//positions the diamond
protectedint n = 4 ;//number of points
protectedboolean fill;
protected Color fillColor = Color.cyan;
protected Color lineColor = Color.blue;
public GrafixPolygon;
}
I just don't know how or where to implement the four methods.
Any help would be much appreciated.

