Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>clr2attr() color function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  CLR2ATTR()                                                  Color Function
 Purpose..: Return a color attribute from a color string
-------------------------------------------------------------------------------
 Syntax...: Clr2Attr( <cClrStr> ) --> nAttribute

 Arguments: <cClrStr>  = Foreground/Background color string.

 Returns..: <N> nAttribute is the color combinations' combined attribute.

 Source...: CLR2ATTR.ASM
-------------------------------------------------------------------------------
 Example..: This example uses Clr2Attr() to pass an integer
            representing a color string to ClsAt(). Useful for
            other libraries such as FUNCKY that use color attributes.

             ClsAt( 10, 10, 20, 20, Clr2Attr( "W+/W" ) )

See Also: Clr2Num() Attr2Clr() ClrTable()

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