ScriptCore3.RGB

From Soldat Community Wiki
Revision as of 16:09, 22 August 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.