FVWM: Adjusting contrast of 3D effects.

From: Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes_at_inria.fr>
Date: Thu, 2 Nov 1995 16:45:02 +0100

Hi everybody!

I noticed that the shadows used by fvwm for shadow effects are much
brighter than what Motif of Xaw3d yield. I guess it comes from the
lines

  
  r = bg_color.red % 0xffff;
  g = bg_color.green % 0xffff;
  b = bg_color.blue % 0xffff;
  
  r = r >>1;
  g = g >>1;
  b = b >>1;
  
  bg_color.red = r;
  bg_color.green = g;
  bg_color.blue = b;


in fvwm/colors.c, or similar snippets in modules. 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.

Jean-Marc.
--
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 - 09:45:40 GMT

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