Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gsline(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gsline

Purpose

     Draws a line between two points.

C Syntax

     int gsline_ (x1, y1, x2, y2)

     int *x1, *y1, *x2, *y2;

FORTRAN Syntax

     INTEGER function gsline (x1, y1, x2, y2)

     INTEGER x1, y1, x2, y2

Pascal Syntax

     FUNCTION gsline_ (

     VAR x1, y1, x2, y2: INTEGER
     ): INTEGER [PUBLIC|;

Description

     The gsline  subroutine draws  a line,  as defined  by the
     current relevant attributes, from  the first point to the
     second point defined by the parameters.

     The relevant attributes are:

     o   Color map
     o   Plane mask
     o   Line color index
     o   Line style
     o   Logical operation.

     Parameters

     x1, y1            Defines  the  coordinates  of  one  end
                       point of the line drawn by gsline.

     x2, y2            Defines the  coordinates of  the second
                       point of the line drawn by gsline.

Return Value

     GS_SUCC   Successful.
     GS_CORD   Invalid coordinate.
     GS_INAC   Virtual terminal inactive.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026