*setlegendbackgroundcolor
Sets the HyperMesh legend background color.
Syntax
*setlegendbackgroundcolor red green blue alpha
Type
HyperMesh Tcl Modify Command
Description
This command sets the HyperMesh legend background color. This applies to all HyperMesh legends.
Inputs
- red
- The red color value, from 0.0 to 1.0.
- green
- The green color value, from 0.0 to 1.0.
- blue
- The blue color value, from 0.0 to 1.0.
- alpha
- The alpha transparency value, from 0.0 to 1.0.
Examples
To set the legend background color to red with no transparency:
*setlegendbackgroundcolor 1.0 0.0 0.0 1.0
Set legend background color to gray with some transparency:
*setlegendbackgroundcolor 0.5 0.5 0.5 0.5
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
12.0.110