Tags:
create new tag
view all tags

.COLOR SET COLOR:RGB

Sets the individual colors of the "current" Color object.


Usage:

      PASS         <red>                      FIELD            SHARE? N
      PASS         <green>                    FIELD            SHARE? N
      PASS         <blue>                     FIELD            SHARE? N
      PASS         <alpha>                    FIELD            SHARE? N
      GOSUB    0CD .COLOR SET COLOR:RGB
      *        Check for error
      IF       0CD .COLOR SET COLOR:RGB       NE

Description:

This routine sets the color of the "current" Color Object using individual values for the Red, Green, Blue and Alpha (or transparent) channel. The <red>, <green> and <blue> parameters must be passed or else the routine will cancel. The <alpha> parameter is optional. All parameters must be in the range of 1-255 decimal, or 0x00 to 0xFF hexidecimal.

Also see .COLOR SET COLOR:R, .COLOR SET COLOR:G, .COLOR SET COLOR:B and .COLOR SET COLOR:A to set these individually.

See ColorSpec for more information on working with colors.

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2011-11-15

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-02-22 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback