rgb

rgb(red:   Integer;
    green: Integer;
    blue:  Integer): Integer;

The rgb method of the JadeTextEdit class returns an Integer value containing the encoded red, green, and blue color values specified in the respective red, green, and blue parameters.

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

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

The valid range for a normal RGB color is 0 through 16,777,215 (#FFFFFF). The high byte of an integer 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.

The code fragment in the following example shows the use of the rgb method.

jte.setLinemarkAttributes(JadeTextEdit.MARKER_JAD_LINEMARK, 0,
                          jte.rgb(255,180,180),
                          jte.rgb(128,255,255));