<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>addcolor</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>April 1993</DATE>
  <SHORT_DESCRIPTION name="addcolor"> add new colors to the current colormap</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>new=addcolor(c)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>new</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: ids of the colors defined in c in the new color table.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>c</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: matrix with 3 columns, RGB color definition.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P><VERB>addcolor</VERB> adds new colors given in the <VERB>c</VERB> argument to the
    current colormap. <VERB>c</VERB> must be a matrix with 3 columns 
    <VERB>[R G B]</VERB><VERB>R</VERB> is red component, <VERB>G</VERB> is green component,
    <VERB>B</VERB> is blue component). Each entry in <VERB>c</VERB> must be a non
    negative number less or equal to 1.</P>
    <P>
    The ids of the new colors are returned into <VERB>new</VERB>.</P>
    <P>
    If a color defined in <VERB>c</VERB> is already present in the current colormap
    it is not added.</P>
  </DESCRIPTION>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>colormap</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
