*setbackgroundcolors

Sets the gradient background color1 and color2 values.

Syntax

*setbackgroundcolors r1 g1 b1 r2 g2 b2

Type

HyperMesh Tcl Modify

Description

Sets the gradient background color1 and color2 values. The actual RGB values are not used. The closest of the standard 64 colors are selected based on the RGB values for color1 and color2.

Inputs

r1
The red color component for color1.
g1
The green color component for color1.
b1
The blue color component for color1.
r2
The red color component for color2.
g2
The green color component for color2.
b2
The blue color component for color2.

Example

To set the gradient background colors to those most closely matching 100 200 255 and 255 100 200:

*setbackgroundcolors 100 200 255 255 100 200

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0