Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Graphics > Color management > addcolor


add new colors to the current colormap

Calling Sequence




ids of the colors defined in c in the new color table.


matrix with 3 columns, RGB color definition.


addcolor adds new colors given in the c argument to the current colormap. c must be a matrix with 3 columns [R G B]R is red component, G is green component, B is blue component). Each entry in c must be a non negative number less or equal to 1.

The ids of the new colors are returned into new.

If a color defined in c is already present in the current colormap it is not added.


h = gcf();
h.color_map = jetcolormap(16);

See Also

  • colormap — using colormaps
  • name2rgb — returns the RGB values of a named color
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:36:23 CEST 2013