public final class ColorInterpolator extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
static Color |
interpolateColor(Color zero,
Color one,
double ratio)
Generate a Color that is interpolated between two given Color values.
|
public static Color interpolateColor(Color zero, Color one, double ratio)
zero - Color; the color that corresponds to ratio == 0one - Color; the color that corresponds to ratio == 1ratio - double; the ratio (should be between 0 and 1)Copyright © 2014–2016 Delft University of Technology. All rights reserved.