Return the red, green and blue components for a color as doubles.
(colorName)
| 23 | VTK_DATA_ROOT = vtkGetDataRoot() |
| 24 | |
| 25 | def GetRGBColor(colorName): |
| 26 | ''' |
| 27 | Return the red, green and blue components for a |
| 28 | color as doubles. |
| 29 | ''' |
| 30 | rgb = [0.0, 0.0, 0.0] # black |
| 31 | vtkNamedColors().GetColorRGB(colorName, rgb) |
| 32 | return rgb |
| 33 | |
| 34 | |
| 35 | # Create the RenderWindow, Renderer and both Actors |
no test coverage detected