Tags:
create new tag
view all tags

.COLOR SET BRIGHTNESS

Sets the brightness of the "current" Color Object.


Usage:

      PASS         <brightness>               FIELD            SHARE? N
      GOSUB    0CD .COLOR SET BRIGHTNESS
      *        Check for error
      IF       0CD .COLOR SET BRIGHTNESS      NE


Description:

Sets the brightness of the "current" Color Object.

<brightness> can range from 0 to 255. A brightness less than 1 means the color is darkened, while a brightness greater than 1 means the color is brightened. For example, a brightness of 0.5 means the color is half as bright as the original color. If the original color is red, the color will become dark red. Conversely, a brightness of 2 means the color is twice as bright as the original color. If the original color is red, the color will become light red.

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-16

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 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