Class ColorHelper

java.lang.Object
team.lodestar.lodestone.helpers.ColorHelper

public class ColorHelper extends Object
  • Constructor Details

    • ColorHelper

      public ColorHelper()
  • Method Details

    • getColor

      public static Color getColor(int decimal)
    • RGBToHSV

      public static void RGBToHSV(Color color, float[] hsv)
    • getColor

      public static int getColor(Color color)
    • getColor

      public static int getColor(int r, int g, int b)
    • getColor

      public static int getColor(int r, int g, int b, int a)
    • getColor

      public static int getColor(double r, double g, double b, double a)
    • colorLerp

      public static Color colorLerp(Easing easing, double delta, Color startColor, Color endColor)
    • colorLerp

      public static Color colorLerp(Easing easing, double delta, double min, double max, Color startColor, Color endColor)
    • multicolorLerp

      public static Color multicolorLerp(Easing easing, double delta, Color... colors)
    • multicolorLerp

      public static Color multicolorLerp(Easing easing, double delta, List<Color> colors)
    • multicolorLerp

      public static Color multicolorLerp(Easing easing, double pct, double min, double max, Color... colors)
    • multicolorLerp

      public static Color multicolorLerp(Easing easing, double delta, double min, double max, List<Color> colors)
    • darker

      public static Color darker(Color color, int times)
    • darker

      public static Color darker(Color color, int power, double factor)
    • brighter

      public static Color brighter(Color color, int power)
    • brighter

      public static Color brighter(Color color, int power, double factor)