constant_rgb#

viewport.constant_rgb(p0: float, p1: float, p2: float) int#

Specify the red, green and blue components of the constant background color for the selected viewport(s)

Args:
p0:

‘red_val’ red, green, blue color component values given in I[0.,1.]

p1:

‘grn_val’ red, green, blue color component values given in I[0.,1.]

p2:

‘blu_val’ red, green, blue color component values given in I[0.,1.]

Examples:
ensight.viewport.select_begin(2)
ensight.viewport.background_type("constant")
ensight.viewport.constant_rgb(0.0000e+00,0.0000e+00,0.0000e+00)
Returns:

zero on success, non-zero on error