.COLOR SET BRIGHTNESS

Set 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
Topic revision: r4 - 03 Dec 2026, AdminUser - This page was cached on 03 Dec 2026 - 20:46.

Powered by Foswiki. Wiki content belongs to its contributing authors.