home *** CD-ROM | disk | FTP | other *** search
- /* with no args, gives dotted diagaonal line. one optional argument is
- * permitted to change line mode. permitted modes are:
- * solid
- * dotted
- * shortdashed
- * longdashed
- * dotdashed
- */
- main(argc,argv)
- int argc;
- char **argv;
- {
- int x0,x1,y0,y1;
-
- x0 = 0;
- y0 = 0;
- x1 = 2000;
- y1 = 2000;
- space(x0,y0,2000,2000);
- if(argc > 1) linemod(argv[1]);
- else linemod("dotted");
- move(x0,y0);
- label("+");
- move(x1,y1);
- label("+");
- line(x0,y0,x1,y1);
- erase();
- exit(0);
- }
-