4D Chart v12CT Index to color | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                    
                        
    
    
                         | 
                
                    
                         
    4D Chart v12
 
CT Index to color 
 
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT Index to color ( index ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| index | Integer | 
             
         | 
        Palette index | |||||
| Function result | Longint | 
             
         | 
        Color described by index | |||||
CT Index to color returns the color described by index.
index is an integer that specifies a particular color on the 4D color palette. Colors on the 4D palette are numbered from 1 to 256.
CT Index to color is a convenient way to specify a color without knowing the individual components.
This example places the color value of the color Cyan (palette index #8) into the vColor variable:
 vColor:=CT Index to color(8)
	Product:  4D Chart
	Theme:  CT Utilities
	Number:  
        14579
        
        
        
	
	Created:  4D Chart 1
CT Color to index
CT COLOR TO RGB
CT RGB to color