您的位置:首页 > 其它

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

2015-09-18 08:02 302 查看
#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);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: