Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - English


Opens a dialog for selecting a color.



RGB = uigetcolor()
RGB = uigetcolor(defaultRGB)
RGB = uigetcolor(defaultRed, defaultGreen, defaultBlue)
RGB = uigetcolor(title, ..)

[R, G, B] = uigetcolor()
[R, G, B] = uigetcolor(defaultRGB)
[R, G, B] = uigetcolor(defaultRed, defaultGreen, defaultBlue)
[R, G, B] = uigetcolor(title, ..)



String: Optional argument, the title to display in the dialog. Default value is "Color Chooser".


1x3 vector [red, green, blue] of default values in [0, 255] for Red, Green and Blue intensities.

defaultRed, defaultGreen, defaultBlue

Integers in [0, 255]: Scalar default values for Red, Green, and Blue intensities.


1x3 vector [red, green, blue] of values in [0, 255] for Red, Green and Blue intensities, or [] if the user cancels.

R, G, B

Integers in [0, 255]: Scalar values for Red, Green and Blue intensities, or [] if the user cancels.


Creates a dialog window for selecting a color. All (default and returned) values are in the interval [0 255].


[R, G, B] = uigetcolor([255 128 0])
RBG = uigetcolor(0, 128, 255)
RBG = uigetcolor("My color chooser", 250, 150, 50)

See also

  • getcolor — opens a dialog to show colors of the current or default colormap
Report an issue
<< rgb2name Color management Datatips >>

Copyright (c) 2022-2023 (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:
Tue Mar 07 09:28:50 CET 2023