首页 > 其他分享 >setlinestyle(0,0,1);setbkcolor(i);setcolor(j);

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

时间:2023-04-17 19:02:28浏览次数:29  
标签:getch setcolor 16 int ++ setbkcolor setlinestyle


#include <graphics.h>
#include <stdio.h>
int main()
{
	int	i, j;
	int	graphdriver = DETECT;
	int	graphmode;
	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);
}


标签:getch,setcolor,16,int,++,setbkcolor,setlinestyle
From: https://blog.51cto.com/u_16076050/6195981

相关文章

  • setlinestyle(j,0,3)
    #include<graphics.h>#include<stdio.h>intmain(){inti,j;intgraphdriver=DETECT;intgraphmode;initgraph(&graphdriver,&graphmode,"");cleardevice();for(i=0;i<4;i++){......