<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="flcolor2">
  <refmeta>
    <refentrytitle>FLcolor2</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>FLcolor2</refname>
    <refpurpose>
      A FLTK opcode that sets the secondary (selection) color.
      <indexterm id="IndexFlcolor2"><primary>FLcolor2</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>FLcolor2</emphasis> is the same of <link linkend="flcolor"><citetitle>FLcolor</citetitle></link> except it affects the secondary (selection) color.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>FLcolor2</command> ired, igreen, iblue</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ired</emphasis> -- The red color of the target widget. The range for each RGB component is 0-255
    </para>

    <para>
      <emphasis>igreen</emphasis> -- The green color of the target widget. The range for each RGB component is 0-255
    </para>

    <para>
      <emphasis>iblue</emphasis> -- The blue color of the target widget. The range for each RGB component is 0-255
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      These opcodes modify the appearance of other widgets. There are two types of such opcodes: those that don't contain the <emphasis>ihandle</emphasis> argument which affect all subsequently declared widgets, and those without <emphasis>ihandle</emphasis> which affect only a target widget previously defined.
    </para>

    <para>
      <emphasis>FLcolor2</emphasis> is the same of <emphasis>FLcolor</emphasis> except it affects the secondary (selection) color. Setting it to -1 turns off the influence of <emphasis>FLcolor2</emphasis> on subsequent widgets. A value of -2 (or -3) makes all next widget secondary colors randomly selected. The difference is that -2 selects a light random color, while -3 selects a dark random color.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="flcolor"><citetitle>FLcolor</citetitle></link>, 
      <link linkend="flhide"><citetitle>FLhide</citetitle></link>, 
      <link linkend="fllabel"><citetitle>FLlabel</citetitle></link>, 
      <link linkend="flsetalign"><citetitle>FLsetAlign</citetitle></link>, 
      <link linkend="flsetbox"><citetitle>FLsetBox</citetitle></link>, 
      <link linkend="flsetcolor"><citetitle>FLsetColor</citetitle></link>, 
      <link linkend="flsetcolor2"><citetitle>FLsetColor2</citetitle></link>, 
      <link linkend="flsetfont"><citetitle>FLsetFont</citetitle></link>, 
      <link linkend="flsetposition"><citetitle>FLsetPosition</citetitle></link>, 
      <link linkend="flsetsize"><citetitle>FLsetSize</citetitle></link>, 
      <link linkend="flsettext"><citetitle>FLsetText</citetitle></link>, 
      <link linkend="flsettextcolor"><citetitle>FLsetTextColor</citetitle></link>, 
      <link linkend="flsettextsize"><citetitle>FLsetTextSize</citetitle></link>, 
      <link linkend="flsettexttype"><citetitle>FLsetTextType</citetitle></link>, 
      <link linkend="flsetvali"><citetitle>FLsetVal_i</citetitle></link>, 
      <link linkend="flsetval"><citetitle>FLsetVal</citetitle></link>, 
      <link linkend="flshow"><citetitle>FLshow</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>New in version 4.22</para>
  </refsect1>
</refentry>
