<vizinfo>.bgcolor

Set the background color of the info box

 

<vizinfo>.bgcolor(
    [r,g,b]    
    alpha = 0.4    

)

 

[r,g,b]

The RGB color value of the background


alpha = 0.4

The alpha value of the background. 0 is transparent and 1 is opaque


Remarks

This command will set the background color of the info box which appears inside the border. The default value is [0.3,0.3,1,0.4]

Return Value

None

Example

import vizinfo

info = vizinfo.add('Script info')

#Set background color to solid black
info.bgcolor(viz.BLACK,1.0)

See also

<vizinfo>.bordercolor