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

Function GetRGBColor

Common/DataModel/Testing/Python/TestQuadricClustering.py:23–30  ·  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

21VTK_DATA_ROOT = vtkGetDataRoot()
22
23def 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#

Callers 1

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected