Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> Графики > Color management > name2rgb

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

  • color — returns the color id of a color
  • color_list — list of named colors
  • rgb2name — returns the name of a color
Report an issue
<< jetcolormap Color management oceancolormap >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:08 CEST 2014