[doc] misc. fix & improvements
[scilab.git] / scilab / modules / graphics / help / ja_JP / color_management / name2rgb.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
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.
14
15  *
16
17  -->
18
19 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
20           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
21           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
22           xml:lang="ja" xml:id="name2rgb">
23
24     <refnamediv>
25
26         <refname>name2rgb</refname>
27
28         <refpurpose>指定した名前の色の RGB値を返す </refpurpose>
29
30     </refnamediv>
31
32     <refsynopsisdiv>
33
34         <title>呼び出し手順</title>
35
36         <synopsis>rgb=name2rgb(name)</synopsis>
37
38     </refsynopsisdiv>
39
40     <refsection>
41
42         <title>引数</title>
43
44         <variablelist>
45
46             <varlistentry>
47
48                 <term>name</term>
49
50                 <listitem>
51
52                     <para>色の名前 (case insensitive).</para>
53
54                 </listitem>
55
56             </varlistentry>
57
58             <varlistentry>
59
60                 <term>rgb</term>
61
62                 <listitem>
63
64                     <para>カラーのRGB整数値ベクトル.</para>
65
66                 </listitem>
67
68             </varlistentry>
69
70         </variablelist>
71
72     </refsection>
73
74     <refsection>
75
76         <title>整数</title>
77
78         <para>
79
80             <literal>name2rgb</literal> は名前で指定した色のRGB値を返します.
81
82             結果はベクトル<literal>[r,g,b]</literal>となります.
83
84             ただし,<literal>r</literal>, <literal>g</literal>および <literal>b</literal>は
85
86             0から255の間の整数でそれぞれ赤,緑,青の色要素に対応します.
87
88             通常と同様,0は明度がないことを意味し,255は色の明度が最大であることを意味します.
89
90         </para>
91
92         <para>
93
94             色が見つからない場合, <literal>[]</literal> が返されます.
95
96         </para>
97
98         <para>
99
100             既知の色の一覧は <link linkend="color_list">color_list</link>により
101
102             取得できます.
103
104         </para>
105
106     </refsection>
107
108     <refsection>
109
110         <title>例</title>
111
112         <programlisting role="example"><![CDATA[
113
114 rgb=name2rgb("gold")
115
116 rgb2name(rgb)
117
118  ]]></programlisting>
119
120     </refsection>
121
122     <refsection role="see also">
123
124         <title>参照</title>
125
126         <simplelist type="inline">
127
128             <member>
129
130                 <link linkend="color">color</link>
131
132             </member>
133
134             <member>
135
136                 <link linkend="color_list">color_list</link>
137
138             </member>
139
140             <member>
141
142                 <link linkend="rgb2name">rgb2name</link>
143
144             </member>
145
146         </simplelist>
147
148     </refsection>
149
150 </refentry>
151