grid_rgb#

viewport_bounds.grid_rgb(p0: float, p1: float, p2: float) int#

Set the color for the bounds grid lines

Args:
p0:

‘red_val’ red, green, blue color components (must be between 0.0 and 1.0)

p1:

‘grn_val’ red, green, blue color components (must be between 0.0 and 1.0)

p2:

‘blu_val’ red, green, blue color components (must be between 0.0 and 1.0)

Examples:
ensight.view.bounds("ON")
ensight.viewport.select_begin(0)
ensight.viewport_bounds.visible("ON")
ensight.viewport_bounds.grid_linewidth(2)
ensight.viewport_bounds.grid_rgb(0.5,1,0)
Returns:

zero on success, non-zero on error