Minor function/variable name changes

This commit is contained in:
2025-10-25 00:26:45 +01:00
parent 9d74dfd613
commit d2c33b529a
2 changed files with 4 additions and 4 deletions

View File

@@ -36,12 +36,12 @@ public class Window {
} }
public void blastOff() { public void blastOff() {
setup(); init();
loop(); loop();
cleanUp(); cleanUp();
} }
private void setup() { private void init() {
logVersion(); logVersion();
createWindow(); createWindow();
createShader(); createShader();

View File

@@ -24,7 +24,7 @@ public final class Log {
final String ANSI_RESET = "\u001B[0m"; final String ANSI_RESET = "\u001B[0m";
} }
private static final EnumMap<LogType, String> COLOUR_FOR_LOG_TYPE = private static final EnumMap<LogType, String> COLOUR_FROM_LOG_TYPE =
new EnumMap<>( new EnumMap<>(
Map.of( Map.of(
LogType.SUCCESS, Colours.GREEN, LogType.SUCCESS, Colours.GREEN,
@@ -50,7 +50,7 @@ public final class Log {
} }
private static String colouriseString(LogType logType, String string) { private static String colouriseString(LogType logType, String string) {
return COLOUR_FOR_LOG_TYPE.get(logType) + string + Colours.ANSI_RESET; return COLOUR_FROM_LOG_TYPE.get(logType) + string + Colours.ANSI_RESET;
} }
private static String colouriseString(String colour, String string) { private static String colouriseString(String colour, String string) {