| 1 | |
| 2 | <refentry id="FLcolor2"> |
| 3 | <indexterm id="IndexFLcolor2"><primary>FLcolor2</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Appearance</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLcolor2</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>FLcolor2</refname> |
| 11 | <refpurpose> |
| 12 | A FLTK opcode that sets the secondary (selection) color. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac. |
| 20 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 21 | <para> |
| 22 | <emphasis>FLcolor2</emphasis> is the same of <link linkend="FLcolor"><citetitle>FLcolor</citetitle></link> except it affects the secondary (selection) color. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>FLcolor2</command> ired, igreen, iblue</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ired</emphasis> -- The red color of the target widget. The range for each RGB component is 0-255 |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>igreen</emphasis> -- The green color of the target widget. The range for each RGB component is 0-255 |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>iblue</emphasis> -- The blue color of the target widget. The range for each RGB component is 0-255 |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Performance</title> |
| 48 | <para> |
| 49 | These opcodes modify the appearance of other widgets. There are |
| 50 | two types of such opcodes: those that do not contain the <emphasis>ihandle</emphasis> argument which affect all subsequently declared widgets, and those with <emphasis>ihandle</emphasis> which affect only a target widget previously defined. |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | <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. |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>See Also</title> |
| 60 | <para> |
| 61 | <link linkend="FLcolor"><citetitle>FLcolor</citetitle></link>, |
| 62 | <link linkend="FLhide"><citetitle>FLhide</citetitle></link>, |
| 63 | <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>, |
| 64 | <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>, |
| 65 | <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>, |
| 66 | <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>, |
| 67 | <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>, |
| 68 | <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>, |
| 69 | <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>, |
| 70 | <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>, |
| 71 | <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>, |
| 72 | <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>, |
| 73 | <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>, |
| 74 | <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>, |
| 75 | <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>, |
| 76 | <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link>, |
| 77 | <link linkend="FLshow"><citetitle>FLshow</citetitle></link> |
| 78 | </para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>Credits</title> |
| 83 | <para>Author: &namegabriel;</para> |
| 84 | <para>New in version 4.22</para> |
| 85 | </refsect1> |
| 86 | </refentry> |