/usr/lib/python3/dist-packages/ginga/util/colorramp.py is in python3-ginga 2.6.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #
# Make an RGB colorramp from HS
#
# Eric Jeschke (eric@naoj.org)
#
from __future__ import print_function
import sys
import colorsys
hue = float(sys.argv[1]) / 360.0
sat = float(sys.argv[2]) / 100.0
for val in range(256):
hsv_val = float(val) / 255.0
r, g, b = colorsys.hsv_to_rgb(hue, sat, hsv_val)
print(" (%f, %f, %f)," % (r, g, b))
#END
|