Difference between revisions of "ScriptCore3.RGB"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
m (Example)
 
Line 14: Line 14:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
[[Category:TMap]]
+
[[Category:Functions]]

Latest revision as of 16:09, 22 August 2013

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.