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