Return the red, green and blue components for a color as doubles.
(colorName)
| 20 | VTK_DATA_ROOT = vtkGetDataRoot() |
| 21 | |
| 22 | def GetRGBColor(colorName): |
| 23 | ''' |
| 24 | Return the red, green and blue components for a |
| 25 | color as doubles. |
| 26 | ''' |
| 27 | rgb = [0.0, 0.0, 0.0] # black |
| 28 | vtkNamedColors().GetColorRGB(colorName, rgb) |
| 29 | return rgb |
| 30 | |
| 31 | # |
| 32 | # Demonstrate the use of implicit selection loop as well as closest point |
no test coverage detected