Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "reset" and "redo" color codes #549

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into patch-37
# Conflicts:
#	src/client/java/minicraft/gfx/Color.java
  • Loading branch information
BenCheung0422 committed Feb 1, 2024

Verified

This commit was signed with the committer’s verified signature.
paveloom Pavel Sobolev
commit a4f6b40476fe3342969f3998e487400ae1dd7600
6 changes: 4 additions & 2 deletions src/client/java/minicraft/gfx/Color.java
Original file line number Diff line number Diff line change
@@ -56,8 +56,10 @@ public class Color {
// Set the color before the last color code; if the last code is: RESET or unset: no operation; REDO: RESET.
public static final String REDO_CODE = COLOR_CHAR + "\u0003\u0000\u0000\u0000";

/** This returns a minicraftrgb.
* a should be between 0-1, r,g,and b should be 0-255 */
/**
* This returns a minicraftrgb.
* a should be between 0-1, r,g,and b should be 0-255
*/
public static int get(int a, int r, int g, int b) {
return (a << 24) + (r << 16) + (g << 8) + (b);
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.