/
setColorPickerColor

setColorPickerColor

Description

Sets the color value of the color picker user control that is specified by userControlId.

The second argument is a three element integer array, holding the Red, Green, and Blue components of the color to set on the control. Each component can range in value from 0 to 255.

Functional area

User Window

Command syntax

Syntax

setColorPickerColor userControlID colorIntArray

Arguments

NameTypeRequiredComments
intArrayint_arrayyesThree element integer array holding the RGB color value to set on the control.
userControlIdintyesID of user control to operate on.

Flags

None

Return value

void

Examples

// Set the color value of a Color Picker User Control
int $windowId; 
int $controlId;
int $color[3];
 
// First create a User Window to place the Controls on
$windowId = `createWindow "MyWindow"`;
 
// Create the User Control on the Window.
$controlId = `createColorPicker $windowId`;
 
// Set the default color to red
$color[ 0 ] = 255;
$color[ 1 ] = 0;
$color[ 2 ] = 0;
setColorPickerColor $controlId $color;

Additional information

Related commands


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks