home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m242 / 1.ddi / SOURCE.ZIP / CGA_HAT.C < prev    next >
Encoding:
Text File  |  1989-10-16  |  2.1 KB  |  36 lines

  1. /* hatch style for cga mode - from 0 to 15 */
  2. cga_hatch(){
  3.     htinit();
  4.     htdefind(0,0,2);        /* 2 pixels of background */
  5.     htdefind(1,1,2);        /* 2 pixels of color 1 */
  6.     htdefind(2,2,2);        /* 2 pixels of color 2 */
  7.     htdefind(3,3,2);        /* 2 pixels of color 3 */
  8.   
  9.     htdefstl(0,2,1,1);      /* style 0 = solid color 1 */
  10.     htdefstl(1,2,1,2);      /* style 1 = solid color 2 */
  11.     htdefstl(2,2,1,3);      /* style 2 = solid color 3 */
  12.     htdefstl(3,2,2,1,0);    /* style 3 = horizontal stripes of color */
  13.                                 /* 1 and background                      */
  14.     htdefstl(4,3,2,1,0);    /* style 4 = vertical stripes of color   */
  15.                                 /* 1 and background                      */
  16.     htdefstl(5,0,2,1,0);    /* style 5 = slanted stripes of color    */
  17.                                 /* 1 and background                      */
  18.     htdefstl(6,2,2,2,0);    /* style 6 = horizontal stripes of color */
  19.                                 /* 2 and background                      */
  20.     htdefstl(7,3,2,2,0);    /* style 7 = vertical stripes of color   */
  21.                                 /* 2 and background                      */
  22.     htdefstl(8,0,2,3,0);    /* style 8 = slanted stripes of color    */
  23.                                 /* 3 and background                      */
  24.     htdefstl(9,2,3,1,2,0);  /* style 9 = horizontal stripes of color */
  25.                              /* 0, 1 and 2                            */
  26.     htdefstl(10,2,1,1);      /* style 0 = solid color 1 */
  27.     htdefstl(11,2,1,2);      /* style 1 = solid color 2 */
  28.     htdefstl(12,2,1,3);      /* style 2 = solid color 3 */
  29.     htdefstl(13,2,2,1,0);    /* style 3 = horizontal stripes of color */
  30.                              /* 1 and background                      */
  31.     htdefstl(14,3,2,1,0);    /* style 4 = vertical stripes of color   */
  32.                              /* 1 and background                      */
  33.     htdefstl(15,0,2,1,0);    /* style 5 = slanted stripes of color    */
  34.                                 /* 1 and background                      */
  35. }
  36.