Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 324 Bytes
"""
Generate a list of N colors starting from color1 to color2 in RGB or HSV space
"""
from __future__ import print_function
print(__doc__)
from vtkplotter.colors import makePalette, getColorName
cols = makePalette("red", "blue", 10, hsv=True)
for c in cols:
print("rgb =", c, " closest color is:", getColorName(c))
You can’t perform that action at this time.