IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19834


Ignore:
Timestamp:
Oct 2, 2008, 10:43:56 AM (18 years ago)
Author:
eugene
Message:

add weight and color for box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/PSFrame.c

    r17466 r19834  
    88  char *fontname;
    99  Graphic *graphic;
     10  float weight;
     11  bDrawColor color;
    1012
    1113  graphic = GetGraphic();
     
    2022    dfy = -graph[0].axis[i].dfy;
    2123    P = hypot ((double)graph[0].axis[(i+1)%2].dfx, (double)graph[0].axis[(i+1)%2].dfy);
     24
     25    weight = MAX (0, MIN (10, graph[0].axis[i].lweight));
     26    color = MAX (0, MIN (15, graph[0].axis[i].color));
     27    fprintf (f, "%.1f setlinewidth\n", weight);
     28    fprintf (f, "%s setrgbcolor\n", KapaColorRGBString(color));
    2229
    2330    if (graph[0].axis[i].isaxis) { DrawLine (fx, fy, dfx, dfy); }
Note: See TracChangeset for help on using the changeset viewer.