Canvas graphic effects
Posted: Sat Dec 04, 2010 2:00 pm
Anybody wants a point from me ? so please tell me how to display something like this :
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);
}