Gets the color value of the color picker user control that is specified by userControlID
.
The return value is a three element integer array, holding the red, green, and blue components of the selected color. Each component ranges in value from 0 to 255.
User Window
getColorPickerColor userControlID |
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to operate on. |
None
integer array
// Get the color value of a Color Picker User Control int $windowId; int $controlId; int $color[]; // First create a User Window to place the Controls on $windowId = `createWindow "MyWindow"`; // Create the User Control on the Window. $controlId = `createColorPicker $windowId`; // Get the default color $color = `getColorPickerColor $controlId`; print $color; |