Color fix
This commit is contained in:
parent
5afdd7a5b3
commit
6ba04833a0
|
|
@ -80,7 +80,7 @@ public class JPanelChessBoard extends JPanel {
|
||||||
@Override
|
@Override
|
||||||
protected void paintComponent(Graphics g) {
|
protected void paintComponent(Graphics g) {
|
||||||
super.paintComponent(g);
|
super.paintComponent(g);
|
||||||
this.setBackground(new Color(118, 150, 86));
|
this.setBackground(new Color(115, 149, 82));
|
||||||
if(pieceSelectorMode) {
|
if(pieceSelectorMode) {
|
||||||
g.drawImage(
|
g.drawImage(
|
||||||
spriteSheet,
|
spriteSheet,
|
||||||
|
|
@ -97,7 +97,7 @@ public class JPanelChessBoard extends JPanel {
|
||||||
float cellWidth = cellWidth();
|
float cellWidth = cellWidth();
|
||||||
float cellHeight = cellHeight();
|
float cellHeight = cellHeight();
|
||||||
|
|
||||||
g.setColor(new Color(238,238,210));
|
g.setColor(new Color(238,236,208));
|
||||||
for(int x=0; x<myGame.getWidth();x++) {
|
for(int x=0; x<myGame.getWidth();x++) {
|
||||||
for (int y=0; y<myGame.getHeight(); y++) {
|
for (int y=0; y<myGame.getHeight(); y++) {
|
||||||
boolean isSelect = myGame.isSelected(x,y);
|
boolean isSelect = myGame.isSelected(x,y);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue