forked from Mirrors/openclonk
Fix documentation of SplitRGBaValue
parent
a0b131cefd
commit
6605d390a9
|
@ -6,9 +6,9 @@
|
|||
<func>
|
||||
<title>SplitRGBaValue</title>
|
||||
<category>Arithmetics</category>
|
||||
<version>5.1 OC</version>
|
||||
<version>5.1 OC (returns proplist since 8.0 OC)</version>
|
||||
<syntax>
|
||||
<rtype>array</rtype>
|
||||
<rtype>proplist</rtype>
|
||||
<params>
|
||||
<param>
|
||||
<type>int</type>
|
||||
|
@ -17,11 +17,11 @@
|
|||
</param>
|
||||
</params>
|
||||
</syntax>
|
||||
<desc>Returns an array with the red, green, blue, and alpha values of the specified 32 bit color value: [red, green, blue, alpha]</desc>
|
||||
<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>
|
||||
<examples>
|
||||
<example>
|
||||
<code>var rgba = SplitRGBaValue(<funclink>GetCursor</funclink>()-><funclink>GetColor</funclink>());
|
||||
<funclink>GetCursor</funclink>()-><funclink>Message</funclink>("R: %d|G: %d|B: %d|A: %d",rgba[0], rgba[1], rgba[2], rgba[3]);
|
||||
<funclink>GetCursor</funclink>()-><funclink>Message</funclink>("R: %d|G: %d|B: %d|A: %d", rgba.R, rgba.G, rgba.B, rgba.Alpha);
|
||||
</code>
|
||||
<text>Displays the four color values of the currently selected clonk above the clonk's head.</text>
|
||||
</example>
|
||||
|
|
Loading…
Reference in New Issue