Class DarknessColors
java.lang.Object
com.realtime.crossfire.jxclient.gui.map.DarknessColors
Utility class for converting darkness values into colors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull ColorThe combined color orColor.BLACKandFOG_OF_WAR_COLOR.static final @NotNull ColorThe color to use for overlaying fog-of-war tiles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ColorgetDarknessColor(int darkness) Returns an overlay color for a darkness value.
-
Field Details
-
FOG_OF_WAR_COLOR
The color to use for overlaying fog-of-war tiles. -
BLACK_AND_FOG_OF_WAR_COLOR
The combined color orColor.BLACKandFOG_OF_WAR_COLOR.
-
-
Constructor Details
-
DarknessColors
public DarknessColors()
-
-
Method Details
-
getDarknessColor
Returns an overlay color for a darkness value.- Parameters:
darkness- the darkness value between 0 and 255- Returns:
- the overlay color
-