320x240 彩色LCD營幕的圓形之幾何圖形範例#4
再次撰寫圓形的幾何圖形,請看附圖。CLR_Screen(BCOLOR); for(v=0;v<=72;v++) { z0++;if(z0>8) z0=1; // 圓形圈的顏色 x0 =120+(cos(v)*50); y0 =160+(sin(v)*50); for(j=0;j<=360;j++) { x1 = x0+cos(j)*50; y1 = y0+sin(j)*50; Put_pixel(x1,y1,YCOLOR[z0]); }}