gslatt
Purpose
Sets the line attributes.
C Syntax
int gslatt_ (color, style)
int *color, *style;
FORTRAN Syntax
INTEGER function gslatt (color, style)
INTEGER color, style
Pascal Syntax
FUNCTION gslatt_ (
VAR color, style: INTEGER
): INTEGER [PUBLIC|;
Description
The gslatt subroutine defines the attributes for the
class of line drawing functions.
Parameters
color Refers to a line color entry in the
color map. If it is -1, the attribute
is unchanged. The default color is 15.
style Sets or resets the line style pattern.
The line style may be one of the fol-
lowing:
Value Display Printer or Plotter
-1 No change No change
0 Solid Solid
1 Dash Dash
2 Dot Dot
3 Dash-dot Dash-dot
4 Dash-dot-dot Dash-dot-dot
Value Display Printer or Plotter
100 Continuous Solid
solid
101 Continuous Dash
dash
102 Continuous Dot
dot
103 Continuous Dash-dot
dash-dot
104 Continuous Dash-dot-dot
dash-dot-dot
150 Continuous Not avail-
user- able
supplied
The default style is solid (0).
The GSL supplied line style patterns are implemented in a
device-dependent fashion. All line style indices not
described above are reserved.
For line styles 1-99, the GSL line drawing functions
ensure that a line or line segment starts and ends with a
run of the line color. For example, the GSL does not
continue the pattern from one polyline segment to
another.
For line styles 100-150, the GSL continues the pattern
across multiple lines or line segments until the applica-
tion makes another call to gslatt to reset the line
pattern. In this case, unlike styles 1-99, the GSL does
continue the pattern from one polyline segment to
another. Continuous line styles are not available on
printers and plotters.
Return Value
GS_SUCC Successful.
GS_COLI Invalid color index.
GS_SYLI Invalid style index.