Color newColor;
x = 300;
y = 300;
for (count = 0; count < 12;count++)
{
for (timer = 0; timer < 300000; timer++)
{
x += y - y;
}
newColor = getmyColor(colorCounter);
g.setColor(newColor);
g.fillRect(xCoord, yCoord, width, depth);
g.drawString("Hello World", xCoord, yCoord + depth + 20);
xCoord = xCoord + 15;
yCoord = yCoord + 15;
width = width + 10;
depth = depth + 10;
colorCounter = (colorCounter + 1) % 12;
}