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
fan = vis.getSrfActor( "impeller" )
fan.color( 0.5, 1, 0.4 )
or :
fanColor = fan.color( )