Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

vvSetGraphBackground

vvSetGraphBackground(
t_backgroundColor
[ w_windowID ]
)
=> t / nil

Description

Sets the specified background color to the specified Waveform window or the current Waveform window.    

Arguments

t_backgroundColor

Background color to be set to the Waveform window.

You can either specify the name of the color or the hex code of the color.

For example, "yellow" or "#ffff00".

w_windowID

Waveform window ID.

If you do not specify this argument, the current Waveform window is used.

Value Returned

t

The specified background color is set to the Waveform window.

nil

Indicates one of the following:

  • The specified background color is not a valid color.
  • Either no Waveform window is currently open or the specified Waveform window does not exist.

Examples

The following examples set yellow as the background color of the current Waveform window.

vvSetGraphBackground("#ffff00" awvGetCurrentWindow())
vvSetGraphBackground("#ffff00")
vvSetGraphBackground("yellow" awvGetCurrentWindow())
vvSetGraphBackground("yellow")

You can also assign a bindkey to change the background color of the current Waveform window.

The following example assigns the bindkey Ctrl + B to change the background color of the current Waveform window to yellow.

hiSetBindKey("vivaGraph" "Ctrl<Key>B" "vvSetGraphBackground(eval(vivaBackgroundColor))")
vivaBackgroundColor="yellow"
=> t
=> "yellow"

Return to top
 ⠀
X