Difference between revisions of "SColor"
From King Arthur's Gold Wiki
(Created page with "The SColor type is used in GUI functions such as DrawRectangle. <syntaxhighlight lang="cpp"> SColor color ( const uint, const uint, const uint, const uint ) </syntaxhighlight> ...") |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlyinclude> | ||
The SColor type is used in GUI functions such as DrawRectangle. | The SColor type is used in GUI functions such as DrawRectangle. | ||
+ | </onlyinclude> | ||
<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 10: | 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));