Return the red, green and blue components for a color as doubles.
(colorName)
| 19 | VTK_DATA_ROOT = vtkGetDataRoot() |
| 20 | |
| 21 | def GetRGBColor(colorName): |
| 22 | ''' |
| 23 | Return the red, green and blue components for a |
| 24 | color as doubles. |
| 25 | ''' |
| 26 | rgb = [0.0, 0.0, 0.0] # black |
| 27 | vtkNamedColors().GetColorRGB(colorName, rgb) |
| 28 | return rgb |
| 29 | |
| 30 | ren1 = vtkRenderer() |
| 31 | renWin = vtkRenderWindow() |
no test coverage detected