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>ps_lnstyle()</b> c_exam7a http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PS_LNSTYLE()                                                        C_EXAM7A
   Sets the line width and color for the palette.

   Syntax
      nIsColor = 0:
         PS_LNSTYLE(nColor,[nWid],*na*,*na* [,nGray] [,nIsColor])
      nIsColor = 1:
         PS_LNSTYLE(nColor [,nWid] [,nRed] [,nGreen] [,nBlue] [,nIsColor])
      nIsColor = 2:
         PS_LNSTYLE(nColor [,nWid] [,nHue] [,nSat] [,nBright] [,nIsColor])

   Arguments
         nColorNumber   Color palette position (0 - 15)

         OPTIONAL PARAMETERS
         nWidth         Width of the line in 10th units.

         IsColor=0
            nGray       Level of gray for black and white device
                           (0-black, 100-no gray)
         IsColor=1
            nRed        Level of red
            nGreen      Level of green
            nBlue       Level of blue

         IsColor=2
            nRed        Hue
            nGreen      Saturation
            nBlue       Brightness

   Returns
         nWidth         Current width of the line for a palette position.

   Description
         PS_LNSTYLE() sets the width of the lines drawn in a certain
         color. The default line width is 1 unit or 1/72th of an inch.
         The nWidth is in 10th's of units, so .1 is 1/720th of an inch.
         However, since a laser jet printer is 300 dots per, this would
         be 1 dot wide on that printer.

         The gray scaling can be set with the fifth parameter. The default
         is all colors black and gray scaling. The gray scaling is 0 for all
         black, 100 for no color, and everything in between. Each color from
         0-15 can be set independently.

         There are two methods for representing colors in PostScript
         printers. nIsColor 1 is the percentage of red, green, blue.
         nIsColor 2 is the hue, saturation, and brightness method. The ranges
         are from 0 to 100%.

See Also: PS_CLOSE() PS_EJECT() PS_OPEN() PS_ROTATE() PS_SETUP()

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