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