Package ch.swingfx.color
Class ColorUtil
java.lang.Object
ch.swingfx.color.ColorUtil
Utility for working with colors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
floatAlphaToIntAlpha
(float alpha) Converts a float value between 0f and 1f to an int value between 0 and 255static Color
-
Constructor Details
-
ColorUtil
private ColorUtil()
-
-
Method Details
-
withAlpha
-
floatAlphaToIntAlpha
public static int floatAlphaToIntAlpha(float alpha) Converts a float value between 0f and 1f to an int value between 0 and 255- Parameters:
alpha
- value between 0f and 1f- Returns:
- int value between 0 and 255
-