1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="getcolor">
15 <refname>getcolor</refname>
16 <refpurpose>opens a dialog to show colors in the current colormap</refpurpose>
19 <title>Calling Sequence</title>
20 <synopsis>c=getcolor(title,[cini])
25 <title>Arguments</title>
30 <para>string, dialog title.</para>
36 <para>initial selected color id. Default value is 1.</para>
42 <para>selected color id or [] if the selection is cancelled.</para>
48 <title>Description</title>
50 <literal>getcolor</literal> opens a window displaying the palette of the current colormap.
51 The user can click on a color to show its id and RGB values.
52 <literal>getcolor</literal> returns the id of the selected color or [] if the "Cancel" button has been clicked or the window closed.
56 <title>Examples</title>
57 <programlisting role="example"><![CDATA[
60 getcolor("Title foo");
62 getcolor("foo",21); // Select the red
66 <refsection role="see also">
67 <title>See Also</title>
68 <simplelist type="inline">
70 <link linkend="color">color</link>
73 <link linkend="colormap">colormap</link>
76 <link linkend="getmark">getmark</link>
79 <link linkend="getfont">getfont</link>