4D View v14

PV Index to color

Home

 
4D View v14
PV Index to color

PV Index to color 


 

PV Index to color ( index ) -> Function result 
Parameter Type   Description
index  Integer in Indexed color number
Function result  Longint in Color number

The PV Index to color command returns the corresponding RGB color number, in the 4D palette, to the number index.

The three RGB components can later be extracted from this result using the PV COLOR TO RGB command.

For the index parameter, you can use the constants of the 4D language found in the Colors theme, available for the first 16 colors (row 1 of the palette which includes 256).

Refer to the descriptions of the following 4D commands for detailed information on the colors used by 4D:

Note: Internal coding of 4D View colors is of the BGR type, which is reversed with respect to 4D's RGB coding; however, the principles of use are the same.

Example  

Refer to the examples for the PV SET RANGE BORDER and PV Color to index commands.

 
PROPERTIES 

Product: 4D View
Theme: PV Tools
Number: 15862

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV Color to index

 
ARTICLE USAGE

4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D View v14)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)