Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant