Still couldn't get yellow to show up properly on the RPi... gave up and changed the color palette

This commit is contained in:
B.J. Dweck 2020-09-25 12:29:54 +02:00
parent 785cd3f713
commit c3d2c68860

View File

@ -10,9 +10,9 @@ import static com.diogonunes.jcolor.Attribute.*;
public class Dice8EntropyGenerator {
public static final AnsiFormat GREEN_STYLE = new AnsiFormat(BLACK_TEXT(), GREEN_BACK(), BOLD());
public static final AnsiFormat YELLOW_STYLE = new AnsiFormat(BLACK_TEXT(), BACK_COLOR(11), BOLD());
public static final AnsiFormat RED_STYLE = new AnsiFormat(WHITE_TEXT(), RED_BACK(), BOLD());
public static final AnsiFormat GREEN_STYLE = new AnsiFormat(BLACK_TEXT(), GREEN_BACK(), BOLD());
public static final AnsiFormat BLUE_STYLE = new AnsiFormat(WHITE_TEXT(), BLUE_BACK(), BOLD());
public static final int DICE_PER_ROLL = 11;
@ -114,12 +114,12 @@ public class Dice8EntropyGenerator {
int wordBitIndex = rollSetBitIndex % 11;
if (wordBitIndex == 0)
return GREEN_STYLE;
return RED_STYLE;
if (wordBitIndex <= 6)
return YELLOW_STYLE;
return GREEN_STYLE;
return RED_STYLE;
return BLUE_STYLE;
}
private String getSeedWordsLine(int rollSet) {