Module omix.api
Package omix.lang

Class ColorInterpolator

java.lang.Object
omix.lang.ColorInterpolator

public final class ColorInterpolator
extends Object
The ColorInterpolator class implements interpolation between colors. A ColorInterpolator with two initial colors can be created. By calling get() with a value between 0.0 and 1.0 the ColorInterpolator returns the linear interpolation of the two colors. Additionally further colors at values between 0.0 and 1.0 can be inserted. In this case the interpolation happens between neighbored colors of the given value. ColorInterpolator can use the RGB or HSV color space to interpolate colors.
Author:
Dr. Peter Droste, Omix Visualization