Field-Map Scripting

4.1.1.9.1 RGB

RGB function


Prototype:

function RGB(R, G, B: byte): integer;

Description:

The RGB function returns an RGB color.

Syntax:

RGB(R,G,B);


Part

Description


R

byte in the range 0-255 representing the intensity of the red component of the color


G

byte in the range 0-255 representing the intensity of the green component of the color


B

byte in the range 0-255 representing the intensity of the blue component of the color

Return value:

RGB color as a longint


Example:

Begin
  case Trees_2013['SpeciesGroup'] of 
    100: Trees_2013.Color['SpeciesGroup']:=clAqua;           //conifers 
    200: Trees_2013.Color['SpeciesGroup']:=RGB(0,255,255);  //broadleaves
  end;
end.  


See also:

RGB; Color2RGB; List of colors