Difference: CDColorSetBrightness (1 vs. 2)

Revision 22012-02-22 - JeanNeron

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="CDChartDirectorDesignerAPI"
>
>
META TOPICPARENT name="CDChartDirectorColorRoutines"
 

.COLOR SET BRIGHTNESS

Sets the brightness of the "current" Color Object.

Revision 12011-11-16 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CDChartDirectorDesignerAPI"

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


<--/commentPlugin-->

-- JeanNeron - 2011-11-16

 
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