Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Graphics > Color management > uigetcolor

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
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Jul 20 11:10:44 CEST 2021