Re: FVWM: Adjusting contrast of 3D effects.

From: Olly Stephens <olly_at_dylan.zycad.com>
Date: Thu, 02 Nov 1995 09:20:20 -0800

Jean-Marc.Lasgouttes_at_inria.fr said:
|>
|> ..... I'd like to see a
|> common function in libfvwm.a that uses a Contrast setting (either a
|> global setting in .fvwmrc or a compile time setting in
|> configure.h). Then we could have something like
|>
|> bg_color.red = (unsigned short)((bg_color.red*CONTRAST)/100);
|> bg_color.green = (unsigned short)((bg_color.green*CONTRAST)/100);
|> bg_color.blue = (unsigned short)((bg_color.blue*CONTRAST)/100);
|>
|>
|> Concerning the darker shadows, they seem to be always black. A similar
|> algorithm would be welcome. I don't know whether we can grab code from
|> Xaw3d and adapt it (Copyright problems, maybe?).
|>
|> Anyway, I tried to change these things myself and, as expected, got
|> no satisfactory result. That's why I transmit this idea to the list.
|>

The initial version of FvwmForm suffered even more than the core and
other modules with a poor algorithm for selecting shades. I submitted
a patch to it which, amongst other things, adopted the shading algorithm
from TK (John Ousterhout's window environment for TCL) which is one of
the best I've come across it. This patch has been integrated into the
distribution version for quite a while now.

It would be good to move this code into libfvwm as a lot of modules try
and maintain a similar looking 3d effect to the core - common code is
the best way to do it.

I doubt if there's any copyright problems. TCL and TK have very liberal
copyright and we're only poaching about 15 lines of code from it.

Olly

--
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 Thu Nov 02 1995 - 11:21:49 GMT

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