color()

Set\get color of an actor.

Usage

actor.color( red = None, green = None, blue = None )

Parameters

red (real)
Transparency value.
green (real)
Transparency value.
blue (real)
Transparency value.

Return Value

List( of RGB )

If red = None and green = None and blue = None, the current RGB value will be returned, or else None.

Errors

red, green and blue must be Real values.

Description

This routine sets\gets color value of an actor. If red, green and blue are None, the current red, green and blue values of color will be returned. For example,
fan = vis.getSrfActor( "impeller" )
fan.color( 0.5, 1, 0.4 )
or :
fanColor = fan.color( )