1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
4 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
5 xml:lang="en" xml:id="uigetcolor">
7 <refname>uigetcolor</refname>
8 <refpurpose>Opens a dialog for selecting a color.</refpurpose>
16 RGB = uigetcolor(defaultRGB)
17 RGB = uigetcolor(defaultRed, defaultGreen, defaultBlue)
18 RGB = uigetcolor(title, ..)
20 [R, G, B] = uigetcolor()
21 [R, G, B] = uigetcolor(defaultRGB)
22 [R, G, B] = uigetcolor(defaultRed, defaultGreen, defaultBlue)
23 [R, G, B] = uigetcolor(title, ..)
27 <title>Arguments</title>
33 String: Optional argument, the title to display in the dialog.
34 Default value is "Color Chooser".
39 <term>defaultRGB</term>
42 1x3 vector [red, green, blue] of default values in [0, 255] for Red, Green
48 <term>defaultRed, defaultGreen, defaultBlue</term>
51 Integers in [0, 255]: Scalar default values for Red, Green, and Blue
60 1x3 vector [red, green, blue] of values in [0, 255] for Red, Green and Blue
61 intensities, or [] if the user cancels.
69 Integers in [0, 255]: Scalar values for Red, Green and Blue intensities,
70 or [] if the user cancels.
77 <title>Description</title>
79 Creates a dialog window for selecting a color. All (default and returned) values are
80 in the interval [0 255].
84 <title>Examples</title>
85 <programlisting role="example"><![CDATA[
87 [R, G, B] = uigetcolor([255 128 0])
88 RBG = uigetcolor(0, 128, 255)
89 RBG = uigetcolor("My color chooser", 250, 150, 50)
94 <imagedata fileref="../../images/uigetcolor_1.png"/>
98 <imagedata fileref="../../images/uigetcolor_RGB.png"/>
102 <refsection role="see also">
103 <title>See also</title>
104 <simplelist type="inline">
106 <link linkend="getcolor">getcolor</link>