Annotation of researchv10no/libplot/libpen/box.c, revision 1.1

1.1     ! root        1: #include "pen.h"
        !             2: box(x1,y1,x2,y2)
        !             3: double x1,y1,x2,y2;
        !             4: {
        !             5:        if(noscale){
        !             6:        x1 = SCX(x1);
        !             7:        y1 = SCY(y1);
        !             8:        x2 = SCX(x2);
        !             9:        y2 = SCY(y2);
        !            10:        }
        !            11:        penUp();
        !            12:        fprintf(pltout,"PA %8.2f,%8.2f; PD; PA %8.2f,%8.2f %8.2f,%8.2f %8.2f,%8.2f %8.2f,%8.2f\n",
        !            13:                x1,y1,x1,y2,x2,y2,x2,y1,x1,y1);
        !            14:        penstate = DOWN;
        !            15:        ckerr(0);
        !            16: }
        !            17: sbox(x1, y1, x2, y2)
        !            18: double x1, y1, x2, y2;
        !            19: {
        !            20:        double ff[8], *fp[1];
        !            21:        int i[2];
        !            22:        ff[0] = ff[6] = x1;
        !            23:        ff[1] = ff[3] = y1;
        !            24:        ff[2] = ff[4] = x2;
        !            25:        ff[5] = ff[7] = y2;
        !            26:        i[0] = 4;
        !            27:        i[1] = 0;
        !            28:        fp[0] = ff;
        !            29:        internal = 1;
        !            30:        fill(i,fp);
        !            31:        internal = 0;
        !            32: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.