0
点赞
收藏
分享

微信扫一扫

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

无聊到学习 2023-04-17 阅读 43


#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);
}


举报

相关推荐

0 条评论