
Cliff notes:
Code:
rspng shadesofgray("shadesofgray.png");
int ss=30; //square size
shadesofgray.SetSize(ss*16,ss*16);
int gs=0; //gray shade
for(int y=0;y<16;y++)
{
for(int x=0;x<16;x++)
{
shadesofgray.PlotRect((x*ss),(y*ss),(x*ss)+ss,(y*ss)+ss,gs,gs,gs,255);
gs++;
}
}
shadesofgray.WriteToFile();