org.biojava.bio.structure.gui.util.color
public interface ColorInterpolator
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
interpolate(java.awt.Color a,
java.awt.Color b,
float mixing)
Interpolates to a color between a and b
|
java.awt.Color interpolate(java.awt.Color a, java.awt.Color b, float mixing)
a
- First colorb
- Second colormixing
- Mixing coefficient; the fraction of a in the result.java.lang.IllegalArgumentException
- if mixing is not between 0 and 1