代码如下复制代码<?//+------------------------+//|pie3dfun.PHP//公用函数|//+------------------------+define("ANGLE_STEP",5);//定义画椭圆弧时的角度步长functiondraw_getdarkcolor($img,$clr)//求$clr对应的暗色{$rgb=imagecolorsforindex($img,$clr);returnarray($rgb["red"]/2,$rgb["green"]/2,$rgb["blue"]/2);}functiondraw_getexy($a,$b,$d)//求角度$d对应的椭...