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 double
EOCF_sRGB
(double srgb) private static int
getInterpolatedChannelValue
(int value1, int value2, double value1Likeness) (package private) Color
getInterpolatedColor
(Color color1, Color color2, float color1Likeness) (package private) int
getInterpolatedRGB
(Color color1, Color color2, float color1Likeness) interpolate
(Color from, Color to, float timelinePosition) private static double
OECF_sRGB
(double linear)
-
Constructor Details
-
ColorInterpolator
ColorInterpolator()
-
-
Method Details
-
getBasePropertyClass
- Specified by:
getBasePropertyClass
in interfacePropertyInterpolator<Color>
-
interpolate
- Specified by:
interpolate
in 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
-