update japanese translation of core module.
[scilab.git] / scilab / modules / graphics / help / ja_JP / color_management / color.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  * This file must be used under the terms of the CeCILL.
12
13  * This source file is licensed as described in the file COPYING, which
14
15  * you should have received as part of this distribution.  The terms
16
17  * are also available at    
18
19  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
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="color">
26     
27     <refnamediv>
28         
29         <refname>color</refname>
30         
31         <refpurpose>色の色IDを取得</refpurpose>
32         
33     </refnamediv>
34     
35     <refsynopsisdiv>
36         
37         <title>呼び出し手順</title>
38         
39         <synopsis>id=color(name)
40             
41             id=color(r,g,b)
42             
43         </synopsis>
44         
45     </refsynopsisdiv>
46     
47     <refsection>
48         
49         <title>引数</title>
50         
51         <variablelist>
52             
53             <varlistentry>
54                 
55                 <term>name</term>
56                 
57                 <listitem>
58                     
59                     <para>色の名前.</para>
60                     
61                 </listitem>
62                 
63             </varlistentry>
64             
65             <varlistentry>
66                 
67                 <term>r,g,b</term>
68                 
69                 <listitem>
70                     
71                     <para>色のRGB整数値.</para>
72                     
73                 </listitem>
74                 
75             </varlistentry>
76             
77             <varlistentry>
78                 
79                 <term>id</term>
80                 
81                 <listitem>
82                     
83                     <para>色のid.</para>
84                     
85                 </listitem>
86                 
87             </varlistentry>
88             
89         </variablelist>
90         
91     </refsection>
92     
93     <refsection>
94         
95         <title>説明</title>
96         
97         <para>
98             
99             <literal>color</literal>は引数に対応する色IDを返します:
100             
101         </para>
102         
103         <itemizedlist>
104             
105             <listitem>
106                 
107                 <para>
108                     
109                     <literal>name</literal> には既知の色の名前を指定する必要があります (<link linkend="color_list">color_list</link>参照). 
110                     
111                 </para>
112                 
113             </listitem>
114             
115             <listitem>
116                 
117                 <para>
118                     
119                     <literal>r</literal>, <literal>g</literal> および <literal>b</literal> は
120                     
121                     赤,緑,青の色素に対応し, 0 から 255の範囲の整数とする必要があります.
122                     
123                     通常と同様に, 0 は彩度がないことを意味し, 255 は色の彩度の最大値を意味します.
124                     
125                 </para>
126                 
127             </listitem>
128             
129         </itemizedlist>
130         
131         <para>指定した色がカレントのカラーマップに存在しない場合,
132             
133             カラーマップに追加されます.
134             
135         </para>
136         
137         <para>この関数はプロットの際に前景色または背景色を指定するために使用されます.
138             
139         </para>
140         
141     </refsection>
142     
143     <refsection>
144         
145         <title>例</title>
146         
147         <programlisting role="example"><![CDATA[ 
148
149 x=linspace(-2*%pi,2*%pi,100)';
150
151 // 既存の色を使用
152
153 plot2d(x,[sin(x),cos(x)],style=[color("red"),color("green")]);
154
155 // 新しい色: カラーマップに追加されます
156
157 e=gce(); p1=e.children(1); p2=e.children(2);
158
159 p1.foreground=color("purple"); p2.foreground=color("navy blue");
160
161 // RGB値を使用
162
163 p1.foreground=color(255,128,128);
164
165  ]]></programlisting>
166         
167         <scilab:image>
168             
169             x=linspace(-2*%pi,2*%pi,100)';
170             
171             // using existing colors
172             
173             plot2d(x,[sin(x),cos(x)],style=[color("red"),color("green")]);
174             
175             // new colors: there are added to the colormap
176             
177             e=gce(); p1=e.children(1); p2=e.children(2);
178             
179             p1.foreground=color("purple"); p2.foreground=color("navy blue");
180             
181             // using RGV values
182             
183             p1.foreground=color(255,128,128);
184             
185         </scilab:image>
186         
187     </refsection>
188     
189     <refsection role="see also">
190         
191         <title>参照</title>
192         
193         <simplelist type="inline">
194             
195             <member>
196                 
197                 <link linkend="colormap">colormap</link>
198                 
199             </member>
200             
201             <member>
202                 
203                 <link linkend="color_list">color_list</link>
204                 
205             </member>
206             
207             <member>
208                 
209                 <link linkend="getcolor">getcolor</link>
210                 
211             </member>
212             
213         </simplelist>
214         
215     </refsection>
216     
217 </refentry>
218