+1 888 340 6572

RGBToLegacyColor: Difference between revisions

From MultiCharts
mNo edit summary
Line 1: Line 1:
Returns the legacy color value that most closely matches the specified RGB color number; the value ranges from 0 to 16.   
Returns the legacy color value that most closely matches the specified RGB color number; the value ranges from 0 to 16.   


==== Usage ====
== Usage ==
<syntaxhighlight>RGBToLegacyColor(RGBColorValue)</syntaxhighlight>  
<syntaxhighlight>RGBToLegacyColor(RGBColorValue)</syntaxhighlight>  


Where: [[RGBColorValue]]- an RGB color number from 0 to 16777215
Where:  


==== Example ====
:'''RGBColorValue''' - an RGB color number from 0 to 16777215.
 
== Example ==
Assign a value, representing the color 65280 (Green) under the RGB color scheme, to Value1 (Value1 will be assigned a value of 4):  
Assign a value, representing the color 65280 (Green) under the RGB color scheme, to Value1 (Value1 will be assigned a value of 4):  


<syntaxhighlight>Value1=RGBToLegacyColor(65280);</syntaxhighlight>  
<syntaxhighlight>Value1 = RGBToLegacyColor(65280);</syntaxhighlight>  
 
 
 
 
 


[[Category:Colors]]
[[Category:Colors]]

Revision as of 12:37, 7 February 2012

Returns the legacy color value that most closely matches the specified RGB color number; the value ranges from 0 to 16.

Usage

RGBToLegacyColor(RGBColorValue)

Where:

RGBColorValue - an RGB color number from 0 to 16777215.

Example

Assign a value, representing the color 65280 (Green) under the RGB color scheme, to Value1 (Value1 will be assigned a value of 4):

Value1 = RGBToLegacyColor(65280);