<?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>()-&gt;SetColor(SetRGBaValue(<funclink>GetCursor</funclink>()-&gt;<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>
