[Beds] X windows colours

Lee Larcombe lee at larcombe.uk-internet.org.uk
Wed Apr 16 17:07:01 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Another question - two in a week!

Does anyone know how to translate a hex colour value (or a 
photoshop-esque rgb triplet) into a colour for use under X?

I am writing some code with Perl/tk and I want to use a colour which 
can be described as either hex #014b8c or Red: 1 Green:75 Blue:140. I 
need it in X style rgb:xx/xx/xx

I assume this is possible, and I am not limited to the colour/name 
definitions in rgb.txt with my X distribution?

Any help is gratefully received

Lee
=========================================
Larcombe IT - total computing technology solutions

www.larcombe.uk-internet.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+nYALYtoU9FG+wlIRAjnUAJ9z1bdXj+iBUoYBckKMS8jGVGM3dACdEuLC
DzRj98GXlUa0RwKWiiDk4vM=
=u2Ok
-----END PGP SIGNATURE-----