new colors
This commit is contained in:
parent
90b9b24972
commit
37d37f96d0
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue