| 4D Chart v13CT COLOR TO RGB | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Chart v13
 CT COLOR TO RGB 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT COLOR TO RGB ( color ; red ; green ; blue ) | ||||||||
| Parameter | Type | Description | ||||||
| color | Longint |   | Color value (internal to 4D Chart) | |||||
| red | Longint |   | Receives red value (0 to 65535) | |||||
| green | Longint |   | Receives green value (0 to 65535) | |||||
| blue | Longint |   | Receives blue value (0 to 65535) | |||||
CT COLOR TO RGB breaks down the color value in color and returns values in the variables representing the red, green, and blue components.
This example gets the component RGB values for a color variable and places them in several local variables:
 $color:=100000
 CT COLOR TO RGB($color;$red;$green;$blue)
	Product:  4D Chart
	Theme:  CT Utilities
	Number:  
        14578
        
        
        
	
	Created:  4D Chart 1
CT Color to index
CT Index to color
CT RGB to color