Command: lines

Syntax

{<entity> = } lines {
    <pcommand>
    ...
}

Description

Create a polyline graphic entity.

Parameters

Switches

Notes

This command always creates a graphic entity. Duplicate consecutive points are ignored.

The symbology of polyline vectors may be changed by using relevant assignments within the command block, e.g. def_color = green.

During vector definition a vector phrase beginning with @ will indicate an invisible vector. A phrase beginning with $ will indicate a linestyled vector, using linestyle def_ls. If neither of these prefixes are present, then the linestyle given by the -ls switch is used.

Examples

Create an unnamed two-element polyline entity.

lines { gc, e:1000, n:1000 }

Create a named polyline entity (the vectors are defined interactively).

entity my_lines = lines -col=red {
    pseries; # Command
    r; # Point phrase "return to start"
}

Create an arguably useless stack of triangles.

numeric x = 1000
entity arches = lines {
    gc
    loop 8 { # Command
        e:x&u:x, e:x&d:x; # Point phrases
        @w:2x-100; # Invisible
        x -= 100; # Command.
    }
}

See Also

Commands:

entity, gstructure, point, vector

Identifiers:

def_color (color), def_fragment (numeric), def_ls (linestyle), def_rank (numeric)