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


uigetcolor

Opens a dialog for selecting a color.

Syntax

uigetcolor()

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, ..)

Arguments

title

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

defaultRGB

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.

RGB

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.

Description

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

Examples

uigetcolor()
[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-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 24 11:13:10 CEST 2024