Return the red, green and blue components for a color as doubles.
(colorName)
| 23 | |
| 24 | # Make grabbing color a little easier |
| 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 | # Create a sphere source and actor |
| 35 | sphere = vtkSphereSource() |
no test coverage detected