home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / education / a / autopcb / !AutoPCB / c / Scratch < prev    next >
Text File  |  1991-03-25  |  1KB  |  39 lines

  1.   /* File header */
  2.   memcpy(Draw, "Draw", 4);
  3.  
  4.   Draw[1] = 201;                  /* Major format */
  5.   Draw[2] = 0;                    /* Minor format */
  6.  
  7.   /* ID of application */
  8.   memcpy(&Draw[3], "AutoPCB     ", 12);
  9.  
  10.   /* Bounding box for whole file */
  11.   Draw[6] = 0;                    /* Low x */
  12.   Draw[7] = 0;                    /* Low y */
  13.   Draw[8] = Ncols * 50;           /* High x */
  14.   Draw[9] = Nrows * 50;           /* High y */
  15.  
  16.   /* Object header (PATH) */
  17.   Draw[10] = 2;                   /* Path */
  18.   Draw[11] = (26 - 10 + 1) * 4;   /* Size */
  19.   Draw[12] = Draw[6];             /* Low x */
  20.   Draw[13] = Draw[7];             /* Low y */
  21.   Draw[14] = Draw[8];             /* High x */
  22.   Draw[15] = Draw[9];             /* High y */
  23.  
  24.   Draw[16] = -1;                  /* No fill colour */
  25.   Draw[17] = 0;                   /* Black colour */
  26.   Draw[18] = 0;                   /* Thin line */
  27.   Draw[19] = 0;                   /* Style (no dash pattern) */
  28.  
  29.   Draw[20] = 2;
  30.   Draw[21] = 100;
  31.   Draw[22] = 100;
  32.  
  33.   Draw[23] = 8;
  34.   Draw[24] = 200;
  35.   Draw[25] = 200;
  36.  
  37.   Draw[26] = 0;
  38.  
  39.   fwrite(Draw, 27, 4, fp);