MCPcopy Create free account
hub / github.com/Kitware/VTK / GetRGBColor

Function GetRGBColor

IO/Geometry/Testing/Python/motor.py:30–37  ·  view source on GitHub ↗

Return the red, green and blue components for a color as doubles.

(colorName)

Source from the content-addressed store, hash-verified

28VTK_DATA_ROOT = vtkGetDataRoot()
29
30def 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# Create the RenderWindow, Renderer and both Actors
40#

Callers 1

motor.pyFile · 0.70

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected