blend_rgb#

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

Specify the red, green and blue components of the blended background color for the specified level of 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(0)
ensight.viewport.background_type("blended")
ensight.viewport.blend_levels(3)
ensight.viewport.blend_editlevel(2)
ensight.viewport.blend_position(3.2000e-01)
ensight.viewport.blend_rgb(0.0000e+00,0.0000e+00,1.0000e+00)
Returns:

zero on success, non-zero on error