#include "graphics.h"
#include "conio.h"
void main()
{int driver,mode,i,j ;
char c[]="welcome to play gobang ";
char d[]="welcome to play gobang ";
driver=DETECT;
mode=0;
initgraph(&driver,&mode,"");
for(;;)/*直到按键结束*/
{for(i=1;i<=16;i++)/*十六种颜色变换,可以根椐自己想要那几种换也行*/
{setcolor(i);
moveto(100,200);
settextstyle(0,0 ,3);
outtext(c);
moveto(200,200);
settextstyle(1,1 ,3);
outtext(c,d);
for(j=1;j<=10000;j++)/*推迟*/
delay(10);
}
if(bioskey(1))
break;
}
restorecrtmode();/*关闭*/
}
c语言 闪烁 字体设计
最新推荐文章于 2022-11-19 16:14:25 发布