#include<stdio.h>
#include<easyx.h>//图形库头文件
int main()
{
initgraph(800,600);//创建一个窗口,宽度为800,高度为600
setorigin(400, 300);//以物理坐标为基准设置逻辑坐标的原点
setaspectratio(1, -1);//实现坐标轴的翻转,-1把y轴翻转
setlinecolor(RED);//setlinecolor函数设置描边颜色,设置描边颜色为红色
circle(0, 0, 100);//先设置颜色在进行绘制图形
getchar();//暂时阻塞程序,等待用户按键关闭
closegraph();//关闭绘图窗体函数
return 0;
}
setlinecolor函数设置描边颜色,绘制一个描边为红色的圆。