文件名称:计算机图形学实验之画树叶代码
文件大小:51KB
文件格式:DOC
更新时间:2012-07-15 10:07:51
计算机图形学 实验 树叶 代码
采用多次循环画点性成树叶 void CMyView::OnDraw(CDC* pDC) { CMyDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here int cordX=300, cordY=400, factor=40;COLORREF color; int n; //n:循环次数 double a[4]={0,0.85,0.2,-0.15}; double b[4]={0,0.04,-0.26,0.28}; double c[4]={0,0.04,0.23,0.26}; double d[4]={0.16,0.85,0.22,0.24}; double e[4]={0,0,0,0}; double f[4]={0,1.6,1.6,0.44}; double p[4]={0.01,0.85,0.07,0.07};