What is the standard way of accessing X11 color mappings in C/C++? -
googling around, see this list, provides useful name rgb mapping.
of course, can copy file, store somewhere, , read it, wondering, there standard way of accessing list c/c++ standard location (hopefully, without lot of hassle)?
even standard location in *nix system useful, since reading/parsing file trivial.
fwiw, running gcc 4.7.3 on ubuntu 13.04.
as recall, , wikipedia (not great reference know)
x11root/lib/x11/rgb.txt
which likely:
/usr/lib/x11/rgb.txt
Comments
Post a Comment