ScriptCore3.RGB

From Soldat Community Wiki
Jump to: navigation, search
function RGB(R, G, B: Byte): LongWord
 R/G/B: intensity of Red/Green/Blue
 Result: result color in a LongWord format

Description

This function generates LongWord representation of a color
described by Red/Green/Blue intesities

Example

begin
  WriteLn(inttostr(RGB(255,255,255))); // 16777215
  WriteLn(inttostr(RGB(0,0,0))); // 0
end.