Skip to content

Commit

Permalink
Added new Color CLEAR_WHITE (#7374)
Browse files Browse the repository at this point in the history
  • Loading branch information
raeleus committed Apr 1, 2024
1 parent 38ac8e2 commit a6dc60f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gdx/src/com/badlogic/gdx/graphics/Color.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Color {
public static final float WHITE_FLOAT_BITS = WHITE.toFloatBits();

public static final Color CLEAR = new Color(0, 0, 0, 0);
public static final Color CLEAR_WHITE = new Color(1, 1, 1, 0);

public static final Color BLUE = new Color(0, 0, 1, 1);
public static final Color NAVY = new Color(0, 0, 0.5f, 1);
Expand Down
1 change: 1 addition & 0 deletions gdx/src/com/badlogic/gdx/graphics/Colors.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static Color put (String name, Color color) {
public static void reset () {
map.clear();
map.put("CLEAR", Color.CLEAR);
map.put("CLEAR_WHITE", Color.CLEAR_WHITE);
map.put("BLACK", Color.BLACK);

map.put("WHITE", Color.WHITE);
Expand Down

0 comments on commit a6dc60f

Please sign in to comment.