GetColor()
Get a color parameter from the data base.
Usage
colorPar = GetColor( path, par, default=None )
Parameters
- path (string)
- Data base path of the node containing the parameter.
- par (string)
- Parameter name.
- default (array) (of RGB)
- Default value. This value is returned if the indicated path and par does not exist.
Return Value
- colorPar (array) (of RGB)
- The parameter value.
Errors
- The parameter in the data base must be an array of RGB values.
- The parameter must exist in the data base or the default must not be None.
Description
nodeClr = ROOT + RS + 'color'
clrValue = GetColor( nodeClr, 'colorValue' )