- Manuel Scilab
- Bibliothèque graphique
- Gestion des couleurs
- addcolor
- autumncolormap
- bonecolormap
- color
- color_list
- colorbar
- colordef
- colormap
- coolcolormap
- coppercolormap
- getcolor
- graycolormap
- hotcolormap
- hsv2rgb
- hsvcolormap
- jetcolormap
- name2rgb
- oceancolormap
- pinkcolormap
- rainbowcolormap
- rgb2name
- springcolormap
- summercolormap
- whitecolormap
- wintercolormap
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
rgb2name
returns the name of a color
Calling Sequence
names=rgb2name(r,g,b) names=rgb2name(rgb)
Arguments
- r,g,b
RGB integer values of a color.
- rgb
vector of RGB integer values of a color.
- names
names of the color.
Description
rgb2name
returns the color name corresponding to the RGB values
given by its argument. A vector of color names can also be returned if the color has more than 1 name.
r
, g
and b
must be integers between 0 and 255
corresponding to colors components red, green and blue. As usual 0 means no intensity and
255 means all the intensity of the color. RGB values can also be given by a vector [r,g,b]
.
If no color is found []
is returned.
The list of all known colors is given by color_list.
Examples
See Also
<< rainbowcolormap | Gestion des couleurs | springcolormap >> |