Tuesday, July 28, 2009

Turbo C problem?I want to blink an object.?

I am making a rectangle with color yellow,I wish to blink this rectangle.How can I do so?








#include%26lt;conio.h%26gt;


#include%26lt;stdio.h%26gt;


#include%26lt;graphics.h%26gt;


#include%26lt;dos.h%26gt;


void main(void)


{


int gdriver;


int gmode;


detectgraph(%26amp;gdriver,%26amp;gmode);


initgraph(%26amp;gdriver,%26amp;gmode,"..\\bgi");


setcolor(14);


line(300,100,300,300);


line(300,300,400,300);


line(400,300,400,100);


line(400,100,300,100);


setfillstyle(9,14);


floodfill(310,120,14);


getch();


}





This is the sourcecode of a rectangle with color yellow,now I want to blink the whole object.


Please help.

Turbo C problem?I want to blink an object.?
i'm not sure...








#include%26lt;conio.h%26gt;


#include%26lt;stdio.h%26gt;


#include%26lt;graphics.h%26gt;


#include%26lt;dos.h%26gt;


void main(void)


{


int gdriver;


int gmode;


detectgraph(%26amp;gdriver,%26amp;gmode);


initgraph(%26amp;gdriver,%26amp;gmode,"..\\bgi");


setcolor(YELLOW+BLINK);


line(300,100,300,300);


line(300,300,400,300);


line(400,300,400,100);


line(400,100,300,100);


setfillstyle(9,14);


floodfill(310,120,14);


getch();


}








**********************


^^, didn't work...


sorry...

snapdragon2

No comments:

Post a Comment