1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
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:ns3="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19 xmlns:scilab="http://www.scilab.org" xml:id="name2rgb" xml:lang="pt">
21 <refname>name2rgb</refname>
22 <refpurpose>Retorna valores RGB correspondentes ao nome da
27 <title>Seqüência de Chamamento</title>
28 <synopsis>rgb = name2rgb(name)</synopsis>
31 <title>Parâmetros</title>
36 <para>nome da cor (insensível a maiúsculas).</para>
42 <para>vetor de valores RGB inteiros de uma cor </para>
48 <title>Descrição</title>
50 <literal>name2rgb</literal> retorna os valores RGB (vermelho, verde,
51 azul) inteiros de uma cor dado o seu nome. O resultado é um vetor
52 <literal>[r,g,b]</literal> onde <literal>r</literal>, <literal>g</literal>
53 e <literal>b</literal> são inteiros entre 0 e 255 correspondentes aos
54 componentes de cor vermelho, verde e azul. Como de uso, 0 significa
55 nenhuma intensidade e 255 significa intensidade total da cor.
57 <para>Se uma cor não for encontrada, é retornado
58 <literal>[]</literal>.
61 A lista de todas as cores conhecidas é dada por <link linkend="color_list">color_list</link>.
65 <title>Exemplos</title>
66 <programlisting role="example"><![CDATA[
71 <refsection role="see also">
72 <title>Ver Também</title>
73 <simplelist type="inline">
75 <link linkend="color">color</link>
78 <link linkend="color_list">color_list</link>
81 <link linkend="rgb2name">rgb2name</link>