4D Chart v13

CT RGB to color

Home

 
4D Chart v13
CT RGB to color

CT RGB to color 


 

CT RGB to color ( red ; green ; blue ) -> Function result 
Parameter Type   Description
red  Longint in Red value (0 to 65535)
green  Longint in Green value (0 to 65535)
blue  Longint in Blue value (0 to 65535)
Function result  Longint in Value of the color (internal to 4D Chart)

CT RGB to color returns a value that represents the red, green, and blue components. This number is used in several 4D Chart commands.

The red, green, and blue parameters are the same as those used in the Macintosh Color Picker.

The following table shows the values for red, green, and blue in three commonly used colors:

ColorRedGreenBlue
red5668322421698
green0327684528
blue0054272

Example  

This example sets a color variable for the color red:

 $color:=CT RGB to color(56683;2242;1698)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Utilities
Number: 14577

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT Color to index
CT COLOR TO RGB
CT Index to color