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 Details

    • ColorInterpolator

      ColorInterpolator()
  • Method Details

    • getBasePropertyClass

      public Class<Color> getBasePropertyClass()
      Specified by:
      getBasePropertyClass in interface PropertyInterpolator<Color>
    • interpolate

      public Color interpolate(Color from, Color to, float timelinePosition)
      Specified by:
      interpolate in interface PropertyInterpolator<Color>
    • getInterpolatedRGB

      int getInterpolatedRGB(Color color1, Color color2, float color1Likeness)
    • 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

      Color getInterpolatedColor(Color color1, Color color2, float color1Likeness)