Class ColorHelper
java.lang.Object
com.ticxo.modelengine.api.utils.math.ColorHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfromHSL(ColorHelper.HSL hsl) static intgetAlpha(int argb) static intgetArgb(int alpha, int red, int green, int blue) static intgetBlue(int argb) static intgetGreen(int argb) static intgetRed(int argb) static intlerpColor(int colorA, int colorB, float ratio) static intmixColor(int first, int second) static ColorHelper.HSLtoHSL(int color) static ColorHelper.HSLtoHSL(int alpha, int red, int green, int blue)
-
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
-
toHSL
-
fromHSL
-
mixColor
public static int mixColor(int first, int second) -
lerpColor
public static int lerpColor(int colorA, int colorB, float ratio)
-