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

Function GetRGBColor

Common/DataModel/Testing/Python/SelectionLoop.py:22–29  ·  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

20VTK_DATA_ROOT = vtkGetDataRoot()
21
22def GetRGBColor(colorName):
23 '''
24 Return the red, green and blue components for a
25 color as doubles.
26 '''
27 rgb = [0.0, 0.0, 0.0] # black
28 vtkNamedColors().GetColorRGB(colorName, rgb)
29 return rgb
30
31#
32# Demonstrate the use of implicit selection loop as well as closest point

Callers 1

SelectionLoop.pyFile · 0.70

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected