This commit is contained in:
Romain MURPHY 2025-04-28 11:20:14 +02:00
parent 1114622c03
commit d55d89db89
3 changed files with 11 additions and 2 deletions

9
OOP_2B1_Project/Test2 Normal file
View File

@ -0,0 +1,9 @@
BR, ,BB,BQ,BK, , ,BR
BP,BP,BP,BP, ,BP,BP,BP
, ,BN,BB, ,BP, ,
, , , ,WN, , ,
, , , , , , ,
, , , , , , ,
WP,WP,WP,WP,WP,WP,WP,WP
WR, ,WB,WQ,WK,WB, ,WR
9B

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

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(new Color(118, 150, 86));
if(pieceSelectorMode) {
g.drawImage(
spriteSheet,
@ -117,7 +117,7 @@ public class JPanelChessBoard extends JPanel {
);
}
if(isHighlight || isSelect) {
g.setColor(Color.white);
g.setColor(new Color(238,238,210));
}
}