chore: DEFAULT_COLOR -> BACKGROUND_COLOR
This commit is contained in:
@@ -50,11 +50,11 @@ public class CliHandler extends AbstractEventHandler<RerenderScreen> {
|
|||||||
: new Empty();
|
: new Empty();
|
||||||
|
|
||||||
TextColor topColor = topPixel instanceof Empty
|
TextColor topColor = topPixel instanceof Empty
|
||||||
? Constants.DEFAULT_COLOR
|
? Constants.BACKGROUND_COLOR
|
||||||
: topPixel.getColor();
|
: topPixel.getColor();
|
||||||
|
|
||||||
TextColor bottomColor = bottomPixel instanceof Empty
|
TextColor bottomColor = bottomPixel instanceof Empty
|
||||||
? Constants.DEFAULT_COLOR
|
? Constants.BACKGROUND_COLOR
|
||||||
: bottomPixel.getColor();
|
: bottomPixel.getColor();
|
||||||
|
|
||||||
drawHalfPixel(tg, x, y / 2, topColor, bottomColor);
|
drawHalfPixel(tg, x, y / 2, topColor, bottomColor);
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ package cz.jzitnik.game;
|
|||||||
import com.googlecode.lanterna.TextColor;
|
import com.googlecode.lanterna.TextColor;
|
||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final TextColor DEFAULT_COLOR = new TextColor.RGB(4, 4, 16);
|
public static final TextColor BACKGROUND_COLOR = new TextColor.RGB(4, 4, 16);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user