rgb#

text.rgb(p0: float, p1: float, p2: float) int#

Specifies the RGB color value of the selected text in the graphics window.

Args:
p0:

‘red_val’ red, green, blue color components, ( 0.0 to 1.0).

p1:

‘grn_val’ red, green, blue color components, ( 0.0 to 1.0).

p2:

‘blu_val’ red, green, blue color components, ( 0.0 to 1.0).

Examples:
ensight.text.select_begin(1)
ensight.text.rgb(1.0,0,0)
Returns:

zero on success, non-zero on error