Package arc.graphics
Class Colors
java.lang.Object
arc.graphics.Colors
A general purpose class containing named colors that can be changed at will. For example, the markup language defined by the
BitmapFontCache class uses this class to retrieve colors. Custom colors can be defined here.-
Method Details
-
getColors
Returns the color map. -
get
Convenience method to lookup a color byname. The invocation of this method is equivalent to the expressionColors.getColors().get(name)- Parameters:
name- the name of the color- Returns:
- the color to which the specified
nameis mapped, ornullif there was no mapping forname.
-
put
Convenience method to add acolorwith itsname. The invocation of this method is equivalent to the expressionColors.getColors().put(name, color)- Parameters:
name- the name of the colorcolor- the color- Returns:
- the previous
colorassociated withname, ornullif there was no mapping forname.
-
reset
public static void reset()Resets the color map to the predefined colors.
-