计算机图形学实验答案.pdfVIP

  • 27
  • 0
  • 约1.27万字
  • 约 9页
  • 2021-12-08 发布于浙江
  • 举报
实验一、中点画直线算法 #include stdio.h #include graphics.h void MidpointLine1(int x0,int y0,int x1, int y1,int color) { int a, b, d1, d2, d, x, y; a=y0-y1; b=x1-x0; d=2*a+b; d1=2*a ; d2=2* (a+b); x=x0; y=y0; putpixel(x, y, color); while (xx1) { if

文档评论(0)

1亿VIP精品文档

相关文档