int main(void)
{
int x, x1, y1, x2, y2,n;
int bkcolor = WHITE;//背景颜色
initgraph(1200, 1200);//窗口大小
setbkcolor(bkcolor);//窗口颜色
cleardevice();//调用cleardevice,背景色刷新背景
//与x轴有关的线,圆,长方形,进行运动
for (x = 50; x < 1000; x += 10) {
setcolor(BLACK);
setfillcolor(LIGHTGRAY);
x1 = x + 60;
y1 = 370;
x2 = x + 100;
y2 = 375;
n = 5;
setlinestyle(PS_SOLID, n);//设置线的宽度
circle(x, 500, 60);
circle(x, 500, 12);
fillcircle(x, 500, 10);
circle(x + 160, 470, 20);
fillcircle(x + 160, 470, 18);
circle(x + 300, 500, 60);
circle(x + 300, 500, 12);
fillcircle(x + 300, 500, 10);
line(x + 9, 490, x + 142, 470);
line(x + 170, 485, x + 190, 520);
line(x + 185, 520, x + 195, 520);
line(x + 300, 488, x + 280, 420);
easyX运动简易自行车
最新推荐文章于 2022-04-25 16:28:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)