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 dark mode & perspective to Board.Draw() #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikeb26
Copy link
Contributor

@mikeb26 mikeb26 commented Nov 26, 2024

This commit adds Board.Draw2(perspective Color, darkMode bool). This is similar to Board.Draw() except that it allows the caller to specify from which perspective to display and whether the display should be reversed colors. (In a terminal window configured with white foreground text and a black background, the current Board.Draw() displays the opposite color).

(cherry picked from commit 2c91017) (cherry picked from commit 820a54f)

This commit adds Board.Draw2(perspective Color, darkMode bool). This
is similar to Board.Draw() except that it allows the caller to specify
from which perspective to display and whether the display should be
reversed colors. (In a terminal window configured with white foreground
text and a black background, the current Board.Draw() displays the
opposite color).

(cherry picked from commit 2c91017)
(cherry picked from commit 820a54f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant