Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>set_ln_pat()</b> t_exam08 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET_LN_PAT()                                                       T_EXAM08
   Sets a line pattern for a Y column.

   Syntax
         nPattern = SET_LN_PAT(nColumn [,nPattern])

   Arguments
         nColumn     Sets the Y column number.
         OPTIONAL PARAMETERS
         nPattern    Sets the pattern number.

   Returns
         nPattern    Returns the pattern type for that column.

   Description
         SET_LN_PAT() sets a line pattern for the Y columns. All Y columns are
         defaulted to a solid line.

         Use SET_LN_PAT() for drawing commands such as FLINE().

         The HPGL line patterns are set with HP_LNPAT() documented in Chapter
         7. The HPGL command for setting the line type is LT followed by the
         pattern number and the pattern length. The new HPGL language has
         pattern numbers up to 8, while the older plotters have pattern
         numbers up to 6. So we defaulted the patterns to the minimum HPGL
         standard.
                  +-----------------------------------------+
                  |               LINE PATTERNS             |
                  ------------------------------------------|
                  |Number|  Line Patterns |Hex value| HPGL  |
                  -------+----------------+---------+-------|
                  |   0  |1111111111111111|  FFFF   |LT;    |
                  |   1  |1000100010001000|  8888   |LT1,1.0|
                  |   2  |1111000011110000|  F0F0   |LT2,2.0|
                  |   3  |1111110011111100|  FCFC   |LT3,2.0|
                  |   4  |1010101010101010|  AAAA   |LT1,0.5|
                  |   5  |1111011011110110|  FCCC   |LT4,1.0|
                  |   6  |1100110011001100|  CCCC   |LT5,1.0|
                  |   7  |1000000010000000|  8080   |LT6,1.0|
                  |   8  |1111111010111010|  FEBA   |LT2,1.0|
                  |   9  |1111110011001100|  FF33   |LT3,1.0|
                  |  10  |1000000000000000|  8000   |LT1,2.0|
                  +-----------------------------------------+

   Examples

               SET_LN_PAT(2, 2)  && set Y column 2 to line pattern 2

See Also: SET_GRID() PAT_SETLIN()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson