int i; //set variables
int j;
int counter;
erase(0, 0, 0, 1);
for (i = 0; i < 85; i ++) //from dark to light
{
setpen(0, i * 3, 0, 0, 1); //Set color
moveto(0, i);
lineto(width, i);
}
for (j = 85; j > 1; j --) //from light to dark
{
counter ++;
setpen(0, j * 3, 0, 0, 1); //set color
moveto(0, counter + 84);
lineto(width, counter + 84);
}
Users browsing this forum: No registered users and 1 guest