bx_color bx_mean_color ( bx_color  c1,
bx_color  c2 
)

Computes an approximation of the color c averaging two colors c1 and c2, that is if c1=(r1,g1,b1) and c2=(r2,g2,b2) as (Red,Green,Blue) triplets, then c=((r1+r2)/2, (g1+g2)/2,(b1+b2)/2).

Parameters:
c1 the first color.
c2 the second color.
Returns:
the mean color c of c1 and c2.


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6