Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gsulns(3g) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought



GSULNS(3g,L)                AIX Technical Reference                GSULNS(3g,L)



-------------------------------------------------------------------------------
gsulns



PURPOSE

Sets the user line pattern.

C SYNTAX

int gsulns_ (pattern, length, begin)

int *pattern, *length, *begin;

FORTRAN SYNTAX

INTEGER function gsulns (pattern, length, begin)

INTEGER pattern, length, begin

PASCAL SYNTAX

FUNCTION gsulns_ (

VAR pattern, length, begin: INTEGER
): INTEGER [PUBLIC];

DESCRIPTION

The gsulns subroutine establishes the user line style.

Parameters

pattern           Defines the pixel pattern used for the line style.  A 1 bit
                  indicates that the GSL draws a pixel; a 0 bit means that it
                  does not.

length            Defines the number of bits (starting with the most
                  significant) of pattern used for line drawing.  The bits are
                  repeated for the length of the line.

                  The length parameter is a value not less than 2 or greater
                  than 32.

begin             Indicates the length of the starting run of bits set to 1 in
                  the pattern.  It is used to adjust the beginning and ending
                  runs of the non-continuous line styles.

For proper appearance, the application-supplied line pattern should begin with
a run of bits set to 1 and end with a run of bits set to 0.




Processed November 7, 1990       GSULNS(3g,L)                                 1





GSULNS(3g,L)                AIX Technical Reference                GSULNS(3g,L)



RETURN VALUE

GS_SUCC  Successful.
GS_ULNS  Invalid user line style.



















































Processed November 7, 1990       GSULNS(3g,L)                                 2



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