Class ColorUtils

java.lang.Object
org.web3d.util.ColorUtils

public class ColorUtils extends Object
An interpolator that works with color components.

The interpolation routine is just a simple linear interpolation between each of the points. The interpolator may take arbitrarily spaced keyframes and compute correct values.

Color interpolation can be done in the standard RGB space (LINEAR) or using the additional type of HSV_LINEAR. This internally converts all color values to HSV space and then interpolates over that instead.

The RGB<->HSV color space conversions have been taken from Foley & van Dam Computer Graphics Principles and Practice, 2nd Edition, Addison Wesley, 1990.

Version:
$Revision: 1.3 $
Author:
Justin Couch