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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.157 1998/11/19 10:22:28 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.158 1998/11/19 10:42:54 per Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:471:    yoffset = (ysize/2 - tysize/2);    break;    case "right":    xoffset = (xsize - txsize);    break;    case "left":    }    } else    background = Image.image(xsize, ysize, @bgcolor);    -  -  if(args->bgscale) -  { -  string c1="black",c2="black",c3="black",c4="black"; -  sscanf(args->bgscale, "%s,%s,%s,%s", c1, c2, c3, c4); -  background->tuned_box(0,0, xsize,ysize, -  ({parse_color(c1),parse_color(c2),parse_color(c3), -  parse_color(c4)})); -  } -  -  -  +     if(args->border)    {    int b = (int)args->border;    background->setcolor(@parse_color((args->border/",")[-1]));       for(--b;b>=0;b--)    {    // upper left -- upper right    background->line(b,b, xsize-b-1, b);   
Roxen.git/server/modules/graphics/graphic_text.pike:517:    int xs=background->xsize(), ys=background->ysize();    if(args->size) { xs=(int)args->size; ys=(int)(args->size/",")[-1]; }    if(args->xsize) xs=(int)args->xsize;    if(args->ysize) ys=(int)args->ysize;    if(!args->rescale)    background = background->copy(0,0,xs-1,ys-1);    else    background = background->scale(xs, ys);    }    +  +  if(args->bgscale) +  { +  string c1="black",c2="black",c3="black",c4="black"; +  sscanf(args->bgscale, "%s,%s,%s,%s", c1, c2, c3, c4); +  background->tuned_box(0,0, xsize,ysize, +  ({parse_color(c1),parse_color(c2),parse_color(c3), +  parse_color(c4)})); +  } +  +     if(args->turbulence)    {    array (float|array(int)) arg=({});    foreach((args->turbulence/";"), string s)    {    array q= s/",";    if(sizeof(q)<2) args+=({ ((float)s)||0.2, ({ 255,255,255 }) });    arg+=({ ((float)q[0])||0.2, parse_color(q[1]) });    }    background=background->turbulence(arg);