2010-08-22 13:13:17 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< !DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
2009-05-09 13:11:51 +00:00
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs >
2010-08-22 13:13:17 +00:00
<func >
<title > SplitRGBaValue</title>
<category > Arithmetics</category>
2017-10-20 21:36:02 +00:00
<version > 5.1 OC (returns proplist since 8.0 OC)</version>
2010-08-22 13:13:17 +00:00
<syntax >
2017-10-20 21:36:02 +00:00
<rtype > proplist</rtype>
2010-08-22 13:13:17 +00:00
<params >
<param >
<type > int</type>
2011-06-30 12:23:24 +00:00
<name > rgba</name>
2010-08-22 13:13:17 +00:00
<desc > 32 bit color value</desc>
</param>
</params>
</syntax>
2017-10-20 21:36:02 +00:00
<desc > Returns a proplist with the red, green, blue, and alpha values of the specified 32 bit color value: <code > {R = red, G = green, B = blue, Alpha = alpha}</code> </desc>
2010-08-22 13:13:17 +00:00
<examples >
<example >
2011-06-30 12:23:24 +00:00
<code > var rgba = SplitRGBaValue(<funclink > GetCursor</funclink> ()-> <funclink > GetColor</funclink> ());
2017-10-20 21:36:02 +00:00
<funclink > GetCursor</funclink> ()-> <funclink > Message</funclink> (" R: %d|G: %d|B: %d|A: %d" , rgba.R, rgba.G, rgba.B, rgba.Alpha);
2009-05-09 13:11:51 +00:00
</code>
2011-06-30 12:23:24 +00:00
<text > Displays the four color values of the currently selected clonk above the clonk's head.</text>
2010-08-22 13:13:17 +00:00
</example>
</examples>
<related >
<funclink > GetRGBaValue</funclink>
<funclink > SetRGBaValue</funclink>
</related>
</func>
<author > Tyron</author> <date > 2004-09</date>
2009-05-09 13:11:51 +00:00
</funcs>