home *** CD-ROM | disk | FTP | other *** search
- /* hatch style for cga mode - from 0 to 15 */
- cga_hatch(){
- htinit();
- htdefind(0,0,2); /* 2 pixels of background */
- htdefind(1,1,2); /* 2 pixels of color 1 */
- htdefind(2,2,2); /* 2 pixels of color 2 */
- htdefind(3,3,2); /* 2 pixels of color 3 */
-
- htdefstl(0,2,1,1); /* style 0 = solid color 1 */
- htdefstl(1,2,1,2); /* style 1 = solid color 2 */
- htdefstl(2,2,1,3); /* style 2 = solid color 3 */
- htdefstl(3,2,2,1,0); /* style 3 = horizontal stripes of color */
- /* 1 and background */
- htdefstl(4,3,2,1,0); /* style 4 = vertical stripes of color */
- /* 1 and background */
- htdefstl(5,0,2,1,0); /* style 5 = slanted stripes of color */
- /* 1 and background */
- htdefstl(6,2,2,2,0); /* style 6 = horizontal stripes of color */
- /* 2 and background */
- htdefstl(7,3,2,2,0); /* style 7 = vertical stripes of color */
- /* 2 and background */
- htdefstl(8,0,2,3,0); /* style 8 = slanted stripes of color */
- /* 3 and background */
- htdefstl(9,2,3,1,2,0); /* style 9 = horizontal stripes of color */
- /* 0, 1 and 2 */
- htdefstl(10,2,1,1); /* style 0 = solid color 1 */
- htdefstl(11,2,1,2); /* style 1 = solid color 2 */
- htdefstl(12,2,1,3); /* style 2 = solid color 3 */
- htdefstl(13,2,2,1,0); /* style 3 = horizontal stripes of color */
- /* 1 and background */
- htdefstl(14,3,2,1,0); /* style 4 = vertical stripes of color */
- /* 1 and background */
- htdefstl(15,0,2,1,0); /* style 5 = slanted stripes of color */
- /* 1 and background */
- }
-