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

Function GetRGBColor

Common/ComputationalGeometry/Testing/Python/closedSplines.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# get the interactor ui
40# Now create the RenderWindow, Renderer and Interactor

Callers 1

closedSplines.pyFile · 0.70

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected