1 /*-
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.proprietary.c%
6 */
7
8 #ifndef lint
9 static char sccsid[] = "@(#)linemod.c 8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11
12 #include "grnplot.h"
13
14 /*---------------------------------------------------------
15 * Linemod sets the current line drawing style.
16 *
17 * Results: None.
18 *
19 * Side Effects:
20 * The line style is set based on string s which
21 * must be one of "dotted", "solid", "longdashed", "shortdashed",
22 * or "dotdashed". If s isn't recognized, then "solid" is used.
23 *---------------------------------------------------------
24 */
linemod(s)25 linemod(s)
26 char *s;
27 {
28 endvector();
29 if (strcmp(s, "dotted") == 0)
30 linestyle = 1;
31 else if (strcmp(s, "longdashed") == 0)
32 linestyle = 4;
33 else if (strcmp(s, "shortdashed") == 0)
34 linestyle = 4;
35 else if (strcmp(s, "dotdashed") == 0)
36 linestyle = 2;
37 else linestyle = DEFAULTLINE;
38 }
39