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

Function GetRGBColor

Interaction/Style/Testing/Python/TestFlyTo.py:21–28  ·  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

19VTK_DATA_ROOT = vtkGetDataRoot()
20
21def GetRGBColor(colorName):
22 '''
23 Return the red, green and blue components for a
24 color as doubles.
25 '''
26 rgb = [0.0, 0.0, 0.0] # black
27 vtkNamedColors().GetColorRGB(colorName, rgb)
28 return rgb
29
30ren1 = vtkRenderer()
31renWin = vtkRenderWindow()

Callers 1

TestFlyTo.pyFile · 0.70

Calls 2

vtkNamedColorsFunction · 0.85
GetColorRGBMethod · 0.80

Tested by

no test coverage detected