1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<func>
<title>SetRGBaValue</title>
<category>Arithmetics</category>
<version>5.1 OC</version>
<syntax>
<rtype>int</rtype>
<params>
<param>
<type>int</type>
<name>Val</name>
<desc>32 bit color value</desc>
</param>
<param>
<type>int</type>
<name>NewVal</name>
<desc>0-255: Color value to be replaced with the old one.</desc>
</param>
<param>
<type>int</type>
<name>select</name>
<desc>0-3: Color value to be changed.</desc>
</param>
</params>
</syntax>
<desc>
Sets a single color value of a 32 bit color value.
<table>
<rowh>
<literal_col>select</literal_col>
<col>Selection</col>
</rowh>
<row>
<literal_col>0</literal_col>
<col>Alpha value</col>
</row>
<row>
<literal_col>1</literal_col>
<col>Red value</col>
</row>
<row>
<literal_col>2</literal_col>
<col>Green value</col>
</row>
<row>
<literal_col>3</literal_col>
<col>Blue value</col>
</row>
</table>
</desc>
<examples>
<example>
<code><funclink>GetCursor</funclink>()->SetColor(SetRGBaValue(<funclink>GetCursor</funclink>()-><funclink>GetColor</funclink>(),255,1));</code>
<text>Sets the red value of the current clonk to maximum.</text>
</example>
</examples>
<related>
<funclink>GetRGBaValue</funclink>
<funclink>DoRGBaValue</funclink>
</related>
</func>
<author>Tyron</author><date>2004-08</date>
</funcs>
|