I created a polygon with my paint(graphics g) g.drawpolygon(int x[], int y[], int n) method (I might be making a mistake in the name of that method but you get the idea)
Now im trying to make my polygon move across the screen, the problem is that when I redraw it of course the previous one doesnt go away so it makes a solid thick line across the screen. My question is simply given that I have the xs, ys and n, how do I erase the polygon?
Now im trying to make my polygon move across the screen, the problem is that when I redraw it of course the previous one doesnt go away so it makes a solid thick line across the screen. My question is simply given that I have the xs, ys and n, how do I erase the polygon?