Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.3 1996/12/04 06:06:34 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.4 1996/12/06 10:55:43 neotron Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";         array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",    "Makes a few new tags:"
Roxen.git/server/modules/graphics/graphic_text.pike:163:   constant black = ({ 0,0,0 });      constant wwwb = ({ lgrey,lgrey,grey,black });   object (Image) bevel(object (Image) in, int width)   {    int h=in->ysize();    int w=in->xsize();       in->paste_alpha(Image(width,h-width*2,@white), 160, 0, width);    in->paste_alpha(Image(width,h-width*2,@black), 128, in->xsize()-width, width); -  in->paste_alpha(Image(w-width*2,width,@white), 160, 0, 0); -  in->paste_alpha(Image(w-width*2,width,@black), 128, width, in->ysize()-width); +  in->paste_alpha(Image(w-width,width,@white), 160, 0, 0); +  in->paste_alpha(Image(w-width,width,@black), 128, width, in->ysize()-width);       object corner = Image(width+1,width+1);    for(int i=-1; i<=width; i++) corner->line(i,width-i,i,-1, 200,200,200);    in->paste_alpha(corner, 128, in->xsize()-width,0);    in->paste_alpha(corner, 128, -1, in->ysize()-width);    corner=0;       return in;   }