text_rgb#

legend.text_rgb(p0: float, p1: float, p2: float) int#

Sets the color of the legend text for title and labels.

Args:
p0:

‘red_val’ red, green, blue contributions of the color (0.0 to 1.0)

p1:

‘grn_val’ red, green, blue contributions of the color (0.0 to 1.0)

p2:

‘blu_val’ red, green, blue contributions of the color (0.0 to 1.0)

Examples:
ensight.legend.select_palette_begin("velocity")
ensight.legend.text_size(35)
ensight.legend.format("%.2f")
ensight.legend.text_rgb(1.0000e+00,0.0000e+00,3.9608e-01)
Returns:

zero on success, non-zero on error