4D View v14PV Color to index |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV Color to index
PV Color to index
The PV Color to index command returns the number of the specified RGB color in the default 4D color palette. 4D's indexed colors range from 0 to 255. Refer to the descriptions of the following 4D commands for detailed information on the RGB 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. This method sets in cell A1 the background color set by the RGB values (0 to 255) entered in cells A2, A3, and A4. The C1 cell displays the number of the index color closest in the 4D palette — with the ad hoc background color — while cells C2, C3, and C4 display the RGB values corresponding to this indexed color, which then illustrates the difference between the starting values. C_LONGINT($Color) `Background color for A1 (RGB) then color after indexing |
PROPERTIES
Product: 4D View
HISTORY
Created: 4D View 6.8 SEE ALSO ARTICLE USAGE
4D View Language ( 4D View v11.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||