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>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2010-08-22 13:13:17 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>bool</rtype>
|
|
|
|
<params>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>Val</name>
|
|
|
|
<desc>32 bit color value</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>red</name>
|
|
|
|
<desc>[opt] variable in which the red value is to be stored</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>green</name>
|
|
|
|
<desc>[opt] variable in which the green value is to be stored</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>blue</name>
|
|
|
|
<desc>[opt] variable in which the blue value is to be stored</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>alpha</name>
|
|
|
|
<desc>[opt] variable in which the alpha value is to be stored</desc>
|
|
|
|
</param>
|
|
|
|
</params>
|
|
|
|
</syntax>
|
|
|
|
<desc>Writes the red, green, blue, and alpha values of a 32 bit color value to the specified variables.</desc>
|
|
|
|
<examples>
|
|
|
|
<example>
|
|
|
|
<code>var red, green, blue;
|
2009-05-09 13:11:51 +00:00
|
|
|
SplitRGBaValue(<funclink>GetColorDw</funclink>(<funclink>GetCursor</funclink>()),red,green,blue);
|
2010-08-22 13:13:17 +00:00
|
|
|
<funclink>GetCursor</funclink>()-><funclink>Message</funclink>("Rot: %d|Grün %d|Blau %d",red, green, blue);
|
2009-05-09 13:11:51 +00:00
|
|
|
</code>
|
2010-08-22 13:13:17 +00:00
|
|
|
<text>Displays the three color values of the currently selected clonk above the clonk's head.</text>
|
|
|
|
</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>
|