Difference between revisions of "SColor"

From King Arthur's Gold Wiki
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
SColor color ( const uint, const uint, const uint, const uint )
+
SColor color ( const uint alpha, const uint red, const uint green, const uint blue )
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 12: Line 12:
 
GUI::DrawRectangle(rect, SColor(255, 25, 25, 25, 0));
 
GUI::DrawRectangle(rect, SColor(255, 25, 25, 25, 0));
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
[[Category:Scripting]]

Latest revision as of 17:37, 16 December 2012

The SColor type is used in GUI functions such as DrawRectangle.


SColor color ( const uint alpha, const uint red, const uint green, const uint blue )

Example

GUI::DrawRectangle(rect, SColor(255, 25, 25, 25, 0));