Scilab 6.0.0
- Aide de Scilab
- Graphiques
- Gestion des couleurs
- addcolor
- autumncolormap
- bonecolormap
- color
- color_list
- colorbar
- colordef
- colormap
- coolcolormap
- coppercolormap
- getcolor
- graycolormap
- hotcolormap
- hsv2rgb
- hsvcolormap
- jetcolormap
- name2rgb
- oceancolormap
- parulacolormap
- pinkcolormap
- rainbowcolormap
- rgb2name
- springcolormap
- summercolormap
- whitecolormap
- wintercolormap
Aide de Scilab >> Graphiques > Gestion des couleurs > name2rgb
name2rgb
returns the RGB values of a named color
Syntax
rgb=name2rgb(name)
Arguments
- name
name of the color or matrix with names of the colors.
- rgb
vector or matrix with 3 columns of RGB integer values of the colors.
Description
name2rgb
returns the RGB values of a color given by its name. The result is
a vector or a matrix with 3 columns [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
- color — returns the color id of a color
- color_list — list of named colors
- rgb2name — returns the name of a color
History
Version | Description |
6.0.0 | Function name2rgb can now handle a single string and a matrix of strings. |
Comments
Add a comment:
Please login to comment this page.