Open color picker
c = uisetcolor
displays a modal color
picker and returns the selected color as an RGB triplet. The RGB triplet is
a three-element row vector whose elements specify the intensities of the
red, green, and blue components of the selected color. The intensities are
in the range [0,1] and are of type double
.
c = uisetcolor(
sets the
default color selection to be the color of an object (such as a obj
)Figure
). If you select a different color in
the color picker, the color of the object changes to the new color after
you click OK. The object must have a property that
controls some aspect of color. For example, some objects have a
Color
or BackgroundColor
property.