setlinestyle(0,0,1);setbkcolor(i);setcolor(j);

来源:互联网 发布:移动网络解锁 编辑:程序博客网 时间:2024/06/07 13:56
#include <graphics.h>#include <stdio.h>int main(){inti, j;intgraphdriver = DETECT;intgraphmode;initgraph( &graphdriver, &graphmode, "" );cleardevice();printf( "NORM_WIDTH:" );setlinestyle( 0, 0, 1 );for ( i = 0; i < 16; i++ ){setbkcolor( i );for ( j = 0; j < 16; j++ ){setcolor( j );circle( (j + 1) * 35, 200, 34 );}getch();}cleardevice();printf( "THICK_WIDTH:" );setlinestyle( 0, 0, 3 );for ( i = 0; i < 16; i++ ){setbkcolor( i );for ( j = 0; j < 16; j++ ){setcolor( j );circle( (j + 1) * 35, 200, 34 );}getch();}getch();closegraph();return(0);}

0 0
原创粉丝点击