colorAs6Hex

colorAs6Hex(col: Integer): String;

The colorAs6Hex method of the JadeTextEdit class returns a six-character hexadecimal string in the RGB format (padded with leading zeros) of the color specified in the col parameter. The returned string is in the RGB format or it is "000000" (black) if the specified color is less than zero (0) or greater than #FFFFFF (white).

JADE uses the RGB scheme for colors. Using the appropriate RGB value can set each property. The valid range for a normal RGB color is zero (0) through 16,777,215 (#FFFFFF). The high byte of a number in this range equals 0; the lower three bytes (from least- to most-significant byte) determine the amount of red, green, and blue, respectively.

The red, green, and blue components are each represented by a number in the range 0 through 255 (#FF). If the high byte is 128, JADE uses the system colors, as defined in the Control Panel of the user.

To determine the Integer value of a color from the RGB values:

int:= RedValue + (GreenValue * 256) + (BlueValue * 256 * 256);

You can use this method when creating text to be passed to the updateAppSettings method.