colors: missing rgb.txt

Questions and problems about using polymake go here.
plyib
Posts: 2
Joined: 18 Mar 2012, 23:37

colors: missing rgb.txt

Postby plyib » 18 Mar 2012, 23:55

Hello,
I am new to this group. Thank you to all who contributed to this fine program !

I have the following problem with polymake. I have installed polymake 2.11 under arch linux. If I use color names, e. g. with the following command from the tutorial:

simplex(3)->VISUAL(VertexColor=> sub { $i = shift; new RGB($i*0.33,$i*0.33,0); });

I get the following message:

polymake: ERROR: color list rgb.txt not found, can't use symbolic color names

The same line worked fine for me under Debian Linux (with a somewhat older polymake version). It would be fine if someone could tell me whether there esists an easy solution or workaraound for my problem.

Thank you for reading this.

kind regards

I. B.

herr
Developer
Posts: 40
Joined: 30 Dec 2010, 13:15

Re: colors: missing rgb.txt

Postby herr » 20 Mar 2012, 09:42

The path to rgb.txt is usually detected automatically, but it can also be specified in the file customize.pl in your .polymake folder. The variable is called $Visual::Color::RGBtxt_path. For me the following worked:

Code: Select all

$Visual::Color::RGBtxt_path='/usr/share/X11/rgb.txt';

plyib
Posts: 2
Joined: 18 Mar 2012, 23:37

Re: colors: missing rgb.txt

Postby plyib » 20 Mar 2012, 23:49

Thank you very much for your helpful reply, it's working fine!
kind regards
I. B.


Return to “Helpdesk”