rgb#

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

Specify the color of the selected curve(s) via red, green, and blue component values.

Args:
p0:

‘red_val’ red, green, blue component of color (0 to 1.)

p1:

‘grn_val’ red, green, blue component of color (0 to 1.)

p2:

‘blu_val’ red, green, blue component of color (0 to 1.)

Examples:
#
# Set the curve color to cyan
#
ensight.curve.select_begin(1)
ensight.curve.rgb(0.0000e+00,1.0000e+00,1.0000e+00)
Returns:

zero on success, non-zero on error