groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Patch for two grohtml bug fixes..


From: Ralph Corderoy
Subject: Re: [Groff] Patch for two grohtml bug fixes..
Date: Fri, 12 Oct 2001 22:35:55 +0100

Hi Werner,

> > Adobe?  I only know PostScript which uses the range 0 -> 1, e.g.
> > `0.5 1 0.1 setrgbcolor'.
> 
> Oops!  I meant X Windows, of course.

Ah, they have an XColor structure (see Xlib.h) at the device
independent level containing red, green, and blue as 16-bit unsigned
integers giving 0..0xffff.

This is mapped onto whatever the device has to offer.

(It makes no sense for them to offer 0..0x10000 since that uses 17 bits
which doesn't pack well and also only uses about 50% of the available
range.)

Cheers,


Ralph.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]