org.xith3d.utility.image
Class ColorfMixer

java.lang.Object
  extended by org.xith3d.utility.image.ColorfMixer

public class ColorfMixer
extends java.lang.Object

Mixes colors.


Constructor Summary
ColorfMixer()
           
 
Method Summary
static org.openmali.vecmath2.Colorf mix(org.openmali.vecmath2.Colorf c1, org.openmali.vecmath2.Colorf c2, float ratio)
          Mixes two colors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorfMixer

public ColorfMixer()
Method Detail

mix

public static org.openmali.vecmath2.Colorf mix(org.openmali.vecmath2.Colorf c1,
                                               org.openmali.vecmath2.Colorf c2,
                                               float ratio)
Mixes two colors.

Parameters:
c1 - First color
c2 - Second color
ratio - If 0, only the first color, if 1 only the second color
Returns:
The mixed color