Annotation of researchv10no/cmd/view2d/step.c, revision 1.1.1.1

1.1       root        1: /* steps for displaying color map or grey scale */
                      2: /* short tab[] = {0,1,3,7,15,31,63,127,255}; */
                      3: short tab[] = {0,32,64,96,128,159,191,223,255};
                      4: main()
                      5: {
                      6:   short w[512][512];
                      7:   int i, j;
                      8:   for(i=0;i<512;i++){
                      9:     for(j=0;j<512;j++){
                     10:       w[j][i] = 255-tab[(3*i/512) + 3*(3*j/512)];
                     11:     }
                     12:   }
                     13:   view2d(1,512,512,0.,0,0,1,0,255,w);
                     14:   exit(0);
                     15: }

unix.superglobalmegacorp.com

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