change board color

This commit is contained in:
TEST 2025-04-15 10:19:33 +02:00
parent a946777646
commit 817333be7f
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class JPanelChessBoard extends JPanel {
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
this.setBackground(Color.black);
this.setBackground(Color.orange);
if(pieceSelectorMode) {
g.drawImage(
spriteSheet,
@ -97,7 +97,7 @@ public class JPanelChessBoard extends JPanel {
float cellWidth = cellWidth();
float cellHeight = cellHeight();
g.setColor(Color.white);
g.setColor(Color.blue);
for(int x=0; x<myGame.getWidth();x++) {
for (int y=0; y<myGame.getHeight(); y++) {
boolean isSelect = myGame.isSelected(x,y);