1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2021 - Samuel GOUGEON
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19 xml:lang="ja" xml:id="getcolor">
21 <refname>getcolor</refname>
22 <refpurpose>カレントのカラーマップの色を示すダイアログをオープンする</refpurpose>
29 c = getcolor(title, cini)
38 <para>文字列, ダイアログのタイトル.</para>
44 <para>選択された初期値の色ID.デフォルト値はs 1.</para>
60 <literal>getcolor</literal> はカレントのカラーマップのパレットを表示する
62 ユーザはそのIDとRGB値を表示するために色をクリックすることができます.
63 <literal>getcolor</literal> は選択された色のID,または
64 "Cancel"ボタンがクリックされたかウインドウがクローズされた場合に []を返します.
69 <programlisting role="example"><![CDATA[
71 c = getcolor("Title foo", color("red")); // 赤を選択
72 c = getcolor("Please choose a color");
77 <imagedata fileref="../../images/getcolor.png"/>
82 --> c = getcolor("Please choose a color")
87 <refsection role="see also">
89 <simplelist type="inline">
91 <link linkend="uigetcolor">uigetcolor</link>
94 <link linkend="color_list">color_list</link>
97 <link linkend="color">color</link>
100 <link linkend="colormap">colormap</link>