Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gsfatt(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gsfatt

Purpose

     Sets the fill attributes.

C Syntax

     int gsfatt_ (color, pattern, reserved)

     int *color, *pattern, *reserved;

FORTRAN Syntax

     INTEGER function gsfatt (color, pattern, reserved)

     INTEGER color, pattern, reserved

Pascal Syntax

     FUNCTION gsfatt_ (

     VAR color, pattern, reserved: INTEGER
     ): INTEGER [PUBLIC|;

Description

     The  gsfatt subroutine  defines  the  attributes for  the
     class of  fill functions,  which includes  gsfci, gsfell,
     gsfrec, and gsfply.

     Parameters

     color     Refers to an entry in  the color map.  If color
               is -1, the attribute is unchanged.  The default
               color after initialization is 15.

     pattern   Contains a value from the following list:

                              Value Display              Printer or Plotter

                              -1    No change            No change
                              0     Solid                Solid
                              1     Horizontal lines     Narrow  right diag-
                                                         onal lines
                              2     Vertical lines       Medium  right diag-
                                                         onal lines
                              3     135-degree lines     Wide right diagonal
                                                         lines

                              Value Display              Printer or Plotter

                              4     45-degree lines      Narrow     diagonal
                                                         cross-hatched
                              5     Cross-hatched (hor-  Medium     diagonal
                                    izontal   and  ver-  cross-hatched
                                    tical lines)
                              6     Cross-hatched  (45-  Wide       diagonal
                                    and      135-degree  cross-hatched
                                    lines)

               The default pattern is solid (0).

               Some printers  and plotters  support additional
               fill  patterns  that  can be  selected  with  a
               pattern index  greater than  6.  If  the device
               you are using does  not support additional fill
               patterns  and  you   specify  a  pattern  index
               greater  than  6,  then the  gsfatt  subroutine
               returns the value GS_SYLI.

               The fill  pattern does  not meet the  border of
               the filled area on printers and plotters.

     reserved  Represents a parameter that gsfatt ignores.

Return Value

     GS_SUCC   Successful.
     GS_COLI   Invalid color index.
     GS_SYLI   Invalid style index.

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