pike.git / lib / modules / Graphics.pmod / Graph.pmod / create_pie.pike

version» Context lines:

pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1:   //! Graph sub-module for drawing pie-charts. - // $Id: create_pie.pike,v 1.13 2005/11/15 16:08:44 nilsson Exp $ + // $Id: create_pie.pike,v 1.14 2006/11/04 19:06:48 nilsson Exp $   //   // These functions were written by Henrik "Hedda" Wallin (hedda@roxen.com)   // Create_pie can draw pie charts in different forms.      #pike __REAL_VERSION__      #include "graph.h"      inherit .create_bars;   
pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:212:    arr2[2*i]=xc+(xr+w)*sin((i*2.0*PI/400.0));    arr2[2*i+1]=yc+(w+yr)*sin(-PI/2+i*2.0*PI/400.0);    arr3[2*i]=xc+(xr+w)*sin((-i*2.0*PI/400.0+FI));    arr3[2*i+1]=yc+(w+yr)*sin(-PI/2-i*2.0*PI/400.0+FI);    }       //Draw the slices    if (sizeof(diagram_data->datacolors)>    sizeof(diagram_data->data[0]))    diagram_data->datacolors=diagram_data->datacolors -  [0..sizeof(diagram_data->data[0])-1]; +  [..sizeof(diagram_data->data[0])-1];       int t=sizeof(diagram_data->datacolors);       float miniwxr;    float miniwyr;       if (!twoD)    {    array arrfoo=copy_value(arr2);    miniwxr=max((w+xr)/2,(w+xr)-diagram_data["3Ddepth"]/10);