new colors

This commit is contained in:
HP 2025-05-22 09:55:32 +02:00
parent 90b9b24972
commit 37d37f96d0
1 changed files with 4 additions and 6 deletions

View File

@ -76,15 +76,13 @@ public class JPanelChessBoard extends JPanel {
public void setGame(Game simu) {
myGame = simu;
}
Color deepViolet = new Color(75, 0, 130);
Color paleViolet = new Color(200, 160, 220);
Color lilac = new Color(200, 162, 200);
Color deepViolet = new Color(106, 40, 126);
Color paleViolet = new Color(192, 174, 231);
Color lilac = new Color(255, 0, 255);
Color haze = new Color(78, 56, 126);
//i change the white and black parameters because the board wasn't right
@Override
protected void paintComponent(Graphics g) {
Color deepViolet = new Color(106, 40, 126);
Color paleViolet = new Color(192, 174, 231);
super.paintComponent(g);
this.setBackground(paleViolet);
if(pieceSelectorMode) {
@ -129,7 +127,7 @@ public class JPanelChessBoard extends JPanel {
}
}
g.setColor(Color.gray);
g.setColor(paleViolet);
for(int x=0; x<myGame.getWidth();x++) {
int graphX = Math.round(x*cellWidth);
g.drawLine(graphX, 0, graphX, this.getHeight());