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 int
fromHSL
(ColorHelper.HSL hsl) static int
getAlpha
(int argb) static int
getArgb
(int alpha, int red, int green, int blue) static int
getBlue
(int argb) static int
getGreen
(int argb) static int
getRed
(int argb) static int
lerpColor
(int colorA, int colorB, float ratio) static int
mixColor
(int first, int second) static ColorHelper.HSL
toHSL
(int color) static ColorHelper.HSL
toHSL
(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)
-