Re: FVWM: colors, etc...

From: Chad Fors <QA3336_at_email.mot.com>
Date: Fri, 05 Jun 1998 10:34:06 -0500

Very true.

If you wish to manually convert the numbers, look at them from a base 16
perspective. I.e., each digit represents a power of 16. So for a 2 digit hex
number, like a4, do the following:

#a4 = a * 16^1 + 4 * 16^0 = 10 * 16 + 4 * 1 = 164 decimal

hex numbers are 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f

It's a bit tricky going the other direction (dec to hex), but fairly straight
forward with only three decimal digits. To convert from dec to any other base,
use the remainder method. E.g., to go from 200 dec to hex, do the following:

200/16 = 12 remainder 8
12/16 = 0 remainder 12, and 12 in hex is c
therefore, 200 dec = c8 hex

Hope this helps.

Neil Zanella wrote:

> On Thu, 4 Jun 1998, Chad Fors wrote:
>
> Thanks,
>
> The problem with the color names given as output to the showrgb command is
> that unfortunately not every color has a name so the list is incomplete in
> that sense.
>
> Neil
>
> > Or, to make things a lot simpler, I believe that you can use the name of the
> > color as given in the showrgb command in place of the hex number itself.



--
-Chad Fors
     Phone   (847)632-5270
     Maildrop  IL27 / 2-E5



--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jun 05 1998 - 11:14:17 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST