I'm a very newbie with Processing and I have a problem that I don't understand.
I will write a simple program with a specified background and a Polygon positioned in the correct coordinates. This Polygon have a dimension at start and in five steps must redimensioned (zoom out).
The problem is that the drawPolygon() method called by draw() method, draw everything he found without consider the i variable. So i can't simulate a zoom out (i take the way where i draw 5 different polygon, when the first is the biggest).
How can I resolve this problem?
I'm sorry for the stupid question and probably a poor English.