Package com.macrofocus.helper
Class ColorHelper
java.lang.Object
com.macrofocus.helper.ColorHelper
Helper class for dealing with colors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
static Color
static float
brightness
(Color color) static boolean
compatible
(Color a, Color b) static Color
static Color
desaturateColor
(Color color) static Color
desaturateColor
(Color color, float saturationMutliplier, float brightnessMultiplier) static float
static String
static int
intLerp
(int dest, int src, int alpha) static int
intMult
(int a, int b) static int
intPrelerp
(int dest, int src, int alpha) static int
Inva
(int a, int c) static double
static float
static Color
static Color
replaceBrightness
(Color color, double brightness) static Color
-
Constructor Details
-
ColorHelper
public ColorHelper()
-
-
Method Details
-
intMult
public static int intMult(int a, int b) -
Inva
public static int Inva(int a, int c) -
intPrelerp
public static int intPrelerp(int dest, int src, int alpha) -
intLerp
public static int intLerp(int dest, int src, int alpha) -
desaturateColor
-
desaturateColor
-
darker
-
brighter
-
brighter
-
getHTMLColor
-
parseHTMLColor
-
lum
-
toGray
-
compatible
-
diff
-
luminance
-
brightness
-
replaceBrightness
-