Class ColorHelper

java.lang.Object
com.ticxo.modelengine.api.utils.math.ColorHelper

public class ColorHelper extends Object
  • Constructor Details

    • ColorHelper

      public ColorHelper()
  • Method Details

    • getAlpha

      public static int getAlpha(int argb)
    • getRed

      public static int getRed(int argb)
    • getGreen

      public static int getGreen(int argb)
    • getBlue

      public static int getBlue(int argb)
    • getArgb

      public static int getArgb(int alpha, int red, int green, int blue)
    • toHSL

      public static ColorHelper.HSL toHSL(int color)
    • toHSL

      public static ColorHelper.HSL toHSL(int alpha, int red, int green, int blue)
    • fromHSL

      public static int fromHSL(ColorHelper.HSL hsl)
    • mixColor

      public static int mixColor(int first, int second)
    • lerpColor

      public static int lerpColor(int colorA, int colorB, float ratio)