Package armyc2.c2sd.renderer.utilities
Class RendererUtilities
java.lang.Object
armyc2.c2sd.renderer.utilities.RendererUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcolorToHexString(Color color, Boolean withAlpha) static ColorgetColorFromHexString(String hexValue) static ColorgetIdealOutlineColor(Color color) static voidrenderSymbolCharacter(Canvas ctx, String symbol, int x, int y, Paint paint, Color color, int outlineWidth)
-
Constructor Details
-
RendererUtilities
public RendererUtilities()
-
-
Method Details
-
getIdealOutlineColor
-
renderSymbolCharacter
public static void renderSymbolCharacter(Canvas ctx, String symbol, int x, int y, Paint paint, Color color, int outlineWidth) -
colorToHexString
-
getColorFromHexString
- Parameters:
hexValue- - String representing hex value (formatted "0xRRGGBB" i.e. "0xFFFFFF") OR formatted "0xAARRGGBB" i.e. "0x00FFFFFF" for a color with an alpha value I will also put up with "RRGGBB" and "AARRGGBB" without the starting "0x"- Returns:
-