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

Function GetRGBColor

Rendering/Core/Testing/Python/rendererSource.py:27–34  ·  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

25VTK_DATA_ROOT = vtkGetDataRoot()
26
27def 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#

Callers 1

rendererSource.pyFile · 0.70

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected