Class AWTPropertyInterpolators.ColorInterpolator
java.lang.Object
org.pushingpixels.radiance.animation.internal.swing.AWTPropertyInterpolators.ColorInterpolator
- All Implemented Interfaces:
PropertyInterpolator<Color>
- Enclosing class:
AWTPropertyInterpolators
static class AWTPropertyInterpolators.ColorInterpolator
extends Object
implements PropertyInterpolator<Color>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static doubleEOCF_sRGB(double srgb) private static intgetInterpolatedChannelValue(int value1, int value2, double value1Likeness) (package private) ColorgetInterpolatedColor(Color color1, Color color2, float color1Likeness) (package private) intgetInterpolatedRGB(Color color1, Color color2, float color1Likeness) interpolate(Color from, Color to, float timelinePosition) private static doubleOECF_sRGB(double linear)
-
Constructor Details
-
ColorInterpolator
ColorInterpolator()
-
-
Method Details
-
getBasePropertyClass
- Specified by:
getBasePropertyClassin interfacePropertyInterpolator<Color>
-
interpolate
- Specified by:
interpolatein interfacePropertyInterpolator<Color>
-
getInterpolatedRGB
-
getInterpolatedChannelValue
private static int getInterpolatedChannelValue(int value1, int value2, double value1Likeness) -
OECF_sRGB
private static double OECF_sRGB(double linear) -
EOCF_sRGB
private static double EOCF_sRGB(double srgb) -
getInterpolatedColor
-