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.14 2006/11/04 19:06:48 nilsson Exp $ + // $Id: create_pie.pike,v 1.15 2008/01/13 17:04:39 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;      mapping(string:mixed) create_pie(mapping(string:mixed) diagram_data)   {    //Only tested with xsize>=100    int si=diagram_data->fontsize;    -  string where_is_ax; -  +     Image.Image piediagram;       init_bg(diagram_data);    piediagram=diagram_data->image;    setinitcolors(diagram_data);       set_legend_size(diagram_data);       diagram_data->ysize-=diagram_data->legend_size;   
pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:368:    +arr3[400..]);    piediagram->polygone(arr[400..]    +arr3[..401]);    }       piediagram->setcolor(255,255,255);       //And now some shading!    if (!twoD)    { -  object below; +     array(int) b=({70,70,70});    array(int) a=({0,0,0});          object tbild;       int imxsize=piediagram->xsize(); //diagram_data->xsize;    int imysize=piediagram->ysize(); //diagram_data->ysize+diagram_data->legendsize;       if(tone)