Return the red, green and blue components for a color as doubles.
(colorName)
| 28 | VTK_DATA_ROOT = vtkGetDataRoot() |
| 29 | |
| 30 | def GetRGBColor(colorName): |
| 31 | ''' |
| 32 | Return the red, green and blue components for a |
| 33 | color as doubles. |
| 34 | ''' |
| 35 | rgb = [0.0, 0.0, 0.0] # black |
| 36 | vtkNamedColors().GetColorRGB(colorName, rgb) |
| 37 | return rgb |
| 38 | |
| 39 | # get the interactor ui |
| 40 | # Now create the RenderWindow, Renderer and Interactor |
no test coverage detected