uigetcolor — Opens a dialog for selecting a color.
uigetcolor()
RGB = uigetcolor([title])
RGB = uigetcolor([title,] defaultRGB)
RGB = uigetcolor([title,] defaultRed, defaultGreen, defaultBlue)
[R, G, B] = uigetcolor([title])
[R, G, B] = uigetcolor([title,] defaultRGB)
[R, G, B] = uigetcolor([title,] defaultRed, defaultGreen, defaultBlue)
String: Optional argument, the title to display in the dialog. Default value is "Color Chooser".
1x3 vector: the default values for Red, Green and Blue values given as a vector [red, green, blue].
Scalar: the default value for red.
Scalar: the default value for green.
Scalar: the default value for blue.
1x3 vector: the values for Red, Green and Blue values given as a vector [red, green, blue] or [] if the user cancels.
Scalar: the value for red or [] if the user cancels.
Scalar: the value for green or [] if the user cancels.
Scalar: the value for blue or [] if the user cancels.
Creates a dialog window for selecting a color. All (default and returned) values must be in the interval [0 255].