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