/usr/share/games/fretsonfire/game/rgb2py.py is in fretsonfire-game 1.3.110.dfsg2-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 | import re
f = open("/etc/X11/rgb.txt")
print "colors = {"
for l in f.readlines():
if l.startswith("!"): continue
c = re.split("[ \t]+", l.strip())
rgb, names = map(int, c[:3]), c[3:]
rgb = [float(c) / 255.0 for c in rgb]
for n in names:
print ' %-24s: (%.2f, %.2f, %.2f),' % ('"%s"' % n.lower(), rgb[0], rgb[1], rgb[2])
print "}"
|