Scilab 5.3.0
- Scilab Online Help
- Graphics Library
- Color management
- 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
name2rgb
returns the RGB values of a named color
Calling Sequence
rgb=name2rgb(name)
Arguments
- name
name of the color.
- rgb
vector of RGB integer values of a color.
Description
name2rgb
returns the RGB values of a color given by its name. The result is
a vector [r,g,b]
where r
, g
and b
are 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.
If no color is found []
is returned.
The list of all known colors is given by color_list.
Examples
rgb=name2rgb("gold") rgb2name(rgb)
See Also
<< jetcolormap | Color management | oceancolormap >> |