Interface ColorInterpolator
- All Known Implementing Classes:
LinearColorInterpolator
public interface ColorInterpolator
- Author:
- Spencer Bliven
-
Method Summary
Modifier and TypeMethodDescriptioninterpolate
(Color a, Color b, float mixing) Interpolates to a color between a and b
-
Method Details
-
interpolate
Interpolates to a color between a and b- Parameters:
a
- First colorb
- Second colormixing
- Mixing coefficient; the fraction of a in the result.- Returns:
- The color between a and b
- Throws:
IllegalArgumentException
- if mixing is not between 0 and 1
-