home *** CD-ROM | disk | FTP | other *** search
- /* test program for the UNIX plot clones */
-
- #define SIZE 100
-
- main()
- {
- register int i;
-
- openpl();
-
- space(0, 0, SIZE, SIZE);
-
- circle(SIZE / 4, SIZE / 4, SIZE / 4);
-
- move(1, SIZE - 1);
-
- cont(SIZE - 1, 1);
-
- for (i = 1; i < SIZE; i++)
- point(i, i);
-
- arc(SIZE-25, SIZE-25, SIZE-25, SIZE, SIZE, SIZE-25);
-
- linemod("dotted");
-
- move(10, SIZE - 1);
-
- label("Testing");
-
- line(0, 0, 0, SIZE);
- line(0, SIZE, SIZE, SIZE);
- line(SIZE, SIZE, SIZE, 0);
- line(SIZE, 0, 0, 0);
-
- closepl();
-
- exit(0);
- }
-