Command: linestyle

Syntax

linestyle <name> {
    <line_def>
    ...
}

or

linestyle <name> = <ident>

Description

Create or redefine a linestyle identifier.

Parameters

Switches

None

Block

The data block containing multiple <line_def> phrases. Available phrases are as follows:

Notes

A special value * may be given for the dash (d) and gap (g) length specification, and will indicate an unspecified length drawn to the next polyline vertex. See the examples below.

Multiple line definitions create a linestyle identifier array, but the identifier name should not be declared as an array. The array creation is performed automatically.

If no color is provided in a line definition, the color associated with the graphic primitive being drawn is used.

Linestyle identifiers can have global or application scope, but cannot have local scope. When local linestyle identifiers are required, string identifiers should be used to reference the linestyles by name.

Examples

Single line style: dash and gap.

linestyle dash_50 { d=50, g=50 }

Single line style: dots at both ends.

linestyle end_dots {
    p, g=*, p
}

Single line style: dash, dot, dot.

linestyle dash_dot_dot {
    d=100, g=10, p, g=10, p, g=10
}

Single line style: general pattern for screen display measured in pixels.

linestyle pixel_10 { su=p, d=10, g=10 }

Single line style: markers at all polyline vertices.

linestyle pluses {
    ms=mk_plus, -mh=25, mv, d=*
}

Single line style: markers only at both ends of the full polyline.

linestyle end_pluses {
    ms=mk_plus, -mh=25, me, d=*
}

Parallel style (two continuous lines offset from center -line by 2mm actual size).

linestyle parall_2 {
    su=a, o=-2, d=*
    su=a, o=2, d=*
}

Make a copy of a linestyle.

linestyle newpal = parall_2

See Also

Commands:

color, markerstyle

Identifiers:

linestyle