nl.tudelft.simulation.dsol.animation.interpolation
Class ColorInterpolation

java.lang.Object
  extended by nl.tudelft.simulation.dsol.animation.interpolation.ColorInterpolation

public class ColorInterpolation
extends Object

ColorInterpolation. This class works on two given colors and will, based on a start and end time transform from starting color to the destination color.

(c) copyright 2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:29 $
Author:
Stijn-Pieter van Houten

Constructor Summary
ColorInterpolation(Color originalStartingColor, Color originalDestinationColor, double startTime, double endTime)
          constructs a new SimulatedLinearInterpolation
 
Method Summary
 Color getColor(double time)
          returns a color based on the interpolation between the original and end destination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorInterpolation

public ColorInterpolation(Color originalStartingColor,
                          Color originalDestinationColor,
                          double startTime,
                          double endTime)
constructs a new SimulatedLinearInterpolation

Parameters:
originalStartingColor - the origin
originalDestinationColor - the destination
startTime - the startTime for the interpolation
endTime - the endTime of the interpolation
Method Detail

getColor

public Color getColor(double time)
returns a color based on the interpolation between the original and end destination

Parameters:
time - the time
Returns:
the color to return


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.