Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created October 25, 2010 15:02
Show Gist options
  • Save onlyshk/645087 to your computer and use it in GitHub Desktop.
Save onlyshk/645087 to your computer and use it in GitHub Desktop.
int x = 0;
int y = 0;
int w = 40;
int h = 40;
for (int i = 0; i < 8; i++)
{
for (int j = 0; j < 8; j++)
{
painter.drawRect(x,y,w,h);
x += 40;
}
x = 0;
y += 40;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment