ChooseColor
ChooseColor [/A[=a]/C=(r,g,b[,a] )]
The ChooseColor operation displays a dialog for choosing a color.
The color initially shown is black unless you specify a different color with /C.
Flags
| /A[=a ] | a =1 shows the alpha (opacity) channel. /A is the same as /A=1. | |
| a =0 hides the alpha channel. This is the default setting. | ||
| The /A flag was added in Igor Pro 7.00. | ||
| /C=(r,g,b[,a]) | Sets the color initially displayed in the dialog. r, g, b, and a specify the the color and optional opacity as RGBA Values. | |
Details
ChooseColor sets the variable V_Flag to 1 if the user clicks OK in the dialog or to 0 otherwise.
If V_Flag is 1 then V_Red, V_Green, V_Blue, and V_Alpha are set to the selected color as integers from 0 to 65535.
A fully opaque color sets V_Alpha=65535. A fully transparent color sets V_Alpha=0.
See Also
ImageTransform rgb2hsl and hsl2rgb keywords.