Re: FVWM: gradient is not smooth

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Fri, 31 Aug 2001 01:21:51 +0200

On Thu, Aug 30, 2001 at 11:27:24PM +0200, Johannes Zellner wrote:
> Hi,
>
> I tried gradients (Hgradient) in title bars, but even if I specify
> 1000 steps, it's not smooth. I'm on a 16 bit TrueColor visual where
> I get perfectly smooth gradient colors when running Win2000 on vmware.
> What can I do to get smooth title colors ?

On a 16 bit display, the smoothness of the gradient depends almost
entirely on the colours you chose. The 16 bits allow for only
five bits per base colour = 32 shades per base colour. So,
gradients generally use no more than 32 different colours, but it
can be even much less if the starting and the end colour are too
close. For example:

  1000 steps from #000000 (black) to #ff0000 (bright red) uses
  32 colours:

--> #000000, #080000, #100000, ..., #f70000, #ff0000

  but 1000 steps from #604000 to #406000 uses only five colours:

--> #604000, #584800, #505000, #485800, #406000

while you will harly note the steps of the first gradient, the
second one consists of only five big blocks of the same colour.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Aug 30 2001 - 18:20:28 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST